PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / pr65936.C
blobafa227686d1d26468cce4c05ff6f3ec96816a8d6
1 // checking ICE in canonical typing
3 class A;
5 template <typename> struct B
7   typedef A type;
8 };
10 template <class T> class C
11   : public B<T>::type
13 } __attribute__ ((__may_alias__));
15 class A
17   operator const C<int> &()
18   {
19     return *static_cast<const C<int> *> (this);
20   }