From a22b75d3f2e179f46175d89d717dc52d1f40e5bb Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Tue, 3 Aug 1999 07:35:17 -0400 Subject: [PATCH] new From-SVN: r28468 --- gcc/testsuite/g++.old-deja/g++.pt/memtemp84.C | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.pt/memtemp84.C 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 00000000000..15246c58d9b --- /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 -- 2.30.2