OSDN Git Service

98b6b00c6b4c0523c5ce0d675dff51045c9f7937
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / enum11.C
1 // PR c++/48969
2 // { dg-options -std=c++0x }
3
4 template<unsigned int N> struct Pair { };
5 struct Foo { enum { Mask = 1 }; } foo;
6 template<typename A, typename B> class Pair<A::Mask | B::Mask>
7 operator|(const A &, const B &)
8 { }
9
10 Pair<Foo::Mask> f = foo|foo;