aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@dcc.unicamp.br>1998-12-04 11:31:32 +0000
committerAlexandre Oliva <oliva@gcc.gnu.org>1998-12-04 11:31:32 +0000
commit71eb0b9ec35acd4843115354a94be4dcb150f7af (patch)
tree3588ba51f5773042f609de26448b502eb81947bd
parentf3400fe27cc892535caa8dd17a62ecaf49e24646 (diff)
downloadgcc-71eb0b9ec35acd4843115354a94be4dcb150f7af.zip
gcc-71eb0b9ec35acd4843115354a94be4dcb150f7af.tar.gz
gcc-71eb0b9ec35acd4843115354a94be4dcb150f7af.tar.bz2
* g++.old-deja/g++.pt/spec20.C: Re-insert non-bogus ERROR marks.
From-SVN: r24089
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/spec20.C9
2 files changed, 10 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 79357f0..40b8f69 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 9cef703..c6b699d 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
};