2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / template / template-id-2.C
blob1bc378c14e6772055a416c9fb99883c4068c5fea
1 // { dg-do compile }
3 // Origin: Richard Guenther <rguenth@tat.physik.uni-tuebingen.de>
5 // PR c++/12924
7 template<typename> struct A {};
9 template<> struct A<void>
11     template<typename T> void foo()
12     {
13         A<T> a;
14         a.template foo<int>();  // { dg-error "no member" }
15     }
18 void bar()
20     A<void> a;
21     a.foo<int>();               // { dg-error "instantiated" }