cp:
[official-gcc.git] / gcc / testsuite / g++.dg / template / qualified-id1.C
blobbbe23c2743b3fa89dc317183a005e2902e286b24
1 // { dg-do compile }
3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 4 Sep 2003 <nathan@codesourcery.com>
5 // Origin Volker Reichelt reichelt@igpm.rwth-aachen.de
7 // PR 11922
9 struct A
11   template <bool> struct B;
12   struct C;
15 template <> struct A::B<false> {};
17 template <typename T> void foo()
19   T::C (); // { dg-error "names a type" "" }
20   T::template B<false>(); // { dg-error "names a type" "" }
23 void bar()
25   foo<A>(); // { dg-error "instantiated" "" }