Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
conv-tmpl5.C
blob: c83e6d83ed99318a6650bf4c48b69bf69c5630ea [
file
] [
log
] [
blame
]
// PR c++/94068 - ICE with template codes in check_narrowing.
// { dg-do compile { target c++11 } }
enum
class
A
{
A1
,
A2
};
A foo
();
long
foo
(
int
);
template
<typename>
void
bar
()
{
const
auto
c
{
foo
()};
}