PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / anonunion1.C
blobea17e5d5f908e58f880dbd6f21b70d38c300e451
1 // PR c++/47303
2 // { dg-do compile }
5 struct Z
7   void foo (int);
8 };
10 struct F
12   typedef void (Z::*zm) (int);
13   typedef void (F::*fm) (int);
14   template <zm>
15   void bar (int)
16   {
17     union
18     {
19       Z z;
20     };
21   }
24 F::fm m = &F::bar <&Z::foo>;