gcc/testsuite/g++.dg/cpp0x/alias-decl-pr92206-1a.C
raw| 1 | // A version of alias-decl-pr92206-1.C where alias2 is a compound type. |
| 2 | // { dg-require-effective-target c++11 } |
| 3 | |
| 4 | template<typename> struct A {}; |
| 5 | template<typename T1, typename T2 = typename T1::value> using alias1 = A<T1>; |
| 6 | template<typename T> class B { |
| 7 | using alias2 = alias1<A<T>>*; // { dg-error {no type named 'value'} } |
| 8 | A<alias2> a; // { dg-bogus {no type named 'value'} } |
| 9 | }; |
| 10 | B<int> b; |