diff options
author | oliva <oliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-12-04 11:31:32 +0000 |
---|---|---|
committer | oliva <oliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-12-04 11:31:32 +0000 |
commit | bd22b1ba93be98421ce88247a143c8027983664a (patch) | |
tree | 3588ba51f5773042f609de26448b502eb81947bd | |
parent | c24cced6ce1ce55ea13a5d514c6fa3e1de275444 (diff) | |
download | gcc-bd22b1ba93be98421ce88247a143c8027983664a.tar.gz |
* g++.old-deja/g++.pt/spec20.C: Re-insert non-bogus ERROR marks.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24089 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/spec20.C | 9 |
2 files changed, 10 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 79357f0173b..40b8f697e74 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +1998-12-04 Alexandre Oliva <oliva@dcc.unicamp.br> + + * g++.old-deja/g++.pt/spec20.C: Re-insert non-bogus ERROR marks. + 1998-12-03 Alexandre Oliva <oliva@dcc.unicamp.br> * g++.old-deja/g++.pt/overload8.C: New test. diff --git a/gcc/testsuite/g++.old-deja/g++.pt/spec20.C b/gcc/testsuite/g++.old-deja/g++.pt/spec20.C index 9cef7030a53..c6b699d9411 100644 --- a/gcc/testsuite/g++.old-deja/g++.pt/spec20.C +++ b/gcc/testsuite/g++.old-deja/g++.pt/spec20.C @@ -1,13 +1,16 @@ // Build don't link: -// According to [temp.class.spec.mfunc]/2, these are valid +// According to the non-normative example in +// [temp.class.spec.mfunc]/2, these should be valid, but the grammar +// in the Standard does not allow partial nor full specializations as +// member-declarations, so we'd better not support them. template <class T> struct S { template <class U> void f(U); - template <> void f<int>(int); // gets bogus error - XFAIL *-*-* + template <> void f<int>(int); // ERROR - invalid specialization template <class V> struct I {}; template <class V> struct I<V*> {}; - template <> struct I<int>; // gets bogus error - XFAIL *-*-* + template <> struct I<int>; // ERROR - invalid specialization }; |