PR c++/54575
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / alias-decl-22.C
blob1f6cb8f40b8c1dba81ddbc559607c941488957ab
1 // The standard is unclear about whether this testcase is well-formed.
2 // Clang considers it well-formed, EDG not.  Let's go with EDG for now.
3 // { dg-do compile { target c++11 } }
5 template <class T>
6 using foo = typename T::bar;    // { dg-error "this context" }
8 class B
10   typedef int bar;              // { dg-error "private" }
11   foo<B> f;                     // { dg-message "required" }