Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.dg / template / qualified-id1.C
blob967764281c03f20b6ccb63cba3e137f493d29921
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 "parsed as a non-type|if a type is meant" "" }
20   T::template B<false>(); // { dg-error "parsed as a non-type|if a type is meant" "" }
23 void bar()
25   foo<A>(); // { dg-error "instantiated" "" }