PR c++/85553
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / alias-decl-22.C
blobc25ee17278e13eade6e40e367fe4054a5483c962
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-message "private" }
11   foo<B> f;                     // { dg-message "required" }