Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / pr88120.C
blob7004e03f4da738084093dd72a65bd963a8068c41
1 // PR c++/88120
2 // { dg-do compile { target c++11 } }
4 typedef int a;
5 enum b : a;
6 class c {
7   enum f { d };
8   c(f);
9   friend c operator&(c, c);
10   typedef void (c::*e)();
11   operator e();
13 class g {
14   template <typename, typename> b h();
15   struct k {
16     c i;
17   };
19 template <typename, typename> b g::h() {
20   k j;
21   &j || j.i &c::d;
22   return b();