2 // { dg-require-effective-target c++11 }
10 enum class scoped_enum
16 template <normal_enum N=not_scoped1>
26 template <scoped_enum N=scoped_enum::scoped1>
41 a.fun<char>(); //<------------ THIS IS FINE
44 B<scoped_enum::scoped1> b_explicited;
46 b_defaulted.fun<char>(); //<------------ UNEXPECTED: THIS FAILS
47 b_defaulted.template fun<char>(); //<------------ THIS IS FINE
49 b_explicited.fun<char>(); //<------------ UNEXPECTED: THIS FAILS
50 b_explicited.template fun<char>();//<------------ THIS IS FINE
53 int main(int argc, char const *argv[])