* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / enum11.C
blobf15b6cda49bddae9853942bfd1b9896663f82e7a
1 // PR c++/48969
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-ftemplate-depth=10" }
5 template<unsigned int N> struct Pair { };
6 struct Foo { enum { Mask = 1 }; } foo;
7 template<typename A, typename B> class Pair<A::Mask | B::Mask> // { dg-error "depth" }
8 operator|(const A &, const B &)
9 { }
11 Pair<Foo::Mask> f = foo|foo;    // { dg-message "from here" }
13 // { dg-prune-output "compilation terminated" }