Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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
()};
}