2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / memtemp84.C
blob6ebade28dabd94b733a74132eb8c0ebc485ce699
1 // { dg-do assemble  }
3 // Copyright (C) 1999 Free Software Foundation
5 // by Alexandre Oliva <oliva@dcc.unicamp.br>
6 // simplified from bug report by redleaf <e1wwater@dingo.cc.uq.edu.au>
8 struct B {
9   template <class> void bar();
10 } b;
12 template <class T> void foo() {
13   b.bar<T>(); // { dg-bogus "" } bar undeclared
14   b.template bar<T>(); // { dg-bogus "" } ditto
15   b.B::bar<T>();
18 template void foo<void>(); // { dg-bogus "" }