diff options
author | Martin v. Löwis <loewis@gcc.gnu.org> | 1999-08-11 19:24:29 +0000 |
---|---|---|
committer | Martin v. Löwis <loewis@gcc.gnu.org> | 1999-08-11 19:24:29 +0000 |
commit | b6062b273ff29769c373f0c541c6fe76a642a1b0 (patch) | |
tree | 1925805090b79309e6714efee62f54abbab15274 | |
parent | eebd152bca9c688793125b1549531b8498413e14 (diff) | |
download | gcc-b6062b273ff29769c373f0c541c6fe76a642a1b0.zip gcc-b6062b273ff29769c373f0c541c6fe76a642a1b0.tar.gz gcc-b6062b273ff29769c373f0c541c6fe76a642a1b0.tar.bz2 |
Need to trick it more.
From-SVN: r28676
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.ns/template13.C | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.ns/template13.C b/gcc/testsuite/g++.old-deja/g++.ns/template13.C index c5e2d78..193451e 100644 --- a/gcc/testsuite/g++.old-deja/g++.ns/template13.C +++ b/gcc/testsuite/g++.old-deja/g++.ns/template13.C @@ -2,6 +2,7 @@ // Templates defined outside must be declared inside namespace bar { + template<class T> void foo(); // trick it to provide some prior declaration template<class T>class X; } @@ -13,9 +14,8 @@ bar::foo(T const &a) return a; } -template<> const int bar::foo<int>(int const &) +template<> void bar::foo<int>() { // ERROR - not declared in bar - XFAIL *-*-* - return 0; } template<class T,class U> |