* g++.old-deja/g++.pt/spec20.C: Re-insert non-bogus ERROR marks.

From-SVN: r24089
This commit is contained in:
Alexandre Oliva 1998-12-04 11:31:32 +00:00 committed by Alexandre Oliva
parent f3400fe27c
commit 71eb0b9ec3
2 changed files with 10 additions and 3 deletions

View File

@ -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.

View File

@ -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
};