Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.dg / parse / typename6.C
blobdc458bee558353b0d217bc0727572fd7cada83e4
1 // { dg-do compile }
2 // Contributed by Matt Austern <austern at apple dot com>
3 // PR c++/13407: Gracefully handle keyword typename in base class specifier.
5 struct A { };
6 struct B { typedef A Type; };
8 template <typename T>
9 struct X : 
10   public typename T::Type  // { dg-error "not allowed in this context" }
11 { };
13 X<B> x;
15 struct C : 
16   public typename A        // { dg-error "not allowed outside of templates" }
17 { };