From: Jason Merrill Date: Tue, 3 Aug 1999 11:35:17 +0000 (-0400) Subject: new X-Git-Tag: prereleases/libstdc++-2.92~11367 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a22b75d3f2e179f46175d89d717dc52d1f40e5bb;p=thirdparty%2Fgcc.git new From-SVN: r28468 --- diff --git a/gcc/testsuite/g++.old-deja/g++.pt/memtemp84.C b/gcc/testsuite/g++.old-deja/g++.pt/memtemp84.C new file mode 100644 index 000000000000..15246c58d9b5 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/memtemp84.C @@ -0,0 +1,18 @@ +// Build don't link: + +// Copyright (C) 1999 Free Software Foundation + +// by Alexandre Oliva +// simplified from bug report by redleaf + +struct B { + template void bar(); +} b; + +template void foo() { + b.bar(); // gets bogus error - bar undeclared + b.template bar(); // gets bogus error - ditto + b.B::bar(); +} + +template void foo(); // gets bogus error