OSDN Git Service

PR c++/19397
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Dec 2005 21:16:21 +0000 (21:16 +0000)
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Dec 2005 21:16:21 +0000 (21:16 +0000)
* g++.dg/template/typedef3.C: New test.

PR c++/19762
PR c++/19764
* g++.dg/template/dtor3.C: Fix error markers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108187 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/dtor3.C
gcc/testsuite/g++.dg/template/typedef3.C [new file with mode: 0644]

index ec769ba..2ba95ed 100644 (file)
@@ -1,3 +1,12 @@
+2005-12-07  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
+
+       PR c++/19397
+       * g++.dg/template/typedef3.C: New test.
+
+       PR c++/19762
+       PR c++/19764
+       * g++.dg/template/dtor3.C: Fix error markers.
+
 2005-12-07  Adrian Straetling  <straetling@de.ibm.com>
 
        * lib/target-supports.exp (check_effective_target_sync_char_short):
index 7f40998..98c2ef6 100644 (file)
@@ -1,4 +1,4 @@
 // PR c++/19762
 
 template<int> struct A { ~A(){} }; // { dg-error "" }
-template A<>::~A(); // { dg-error "" }
+template A<>::~A(); // { dg-error "template|declaration" }
diff --git a/gcc/testsuite/g++.dg/template/typedef3.C b/gcc/testsuite/g++.dg/template/typedef3.C
new file mode 100644 (file)
index 0000000..481f451
--- /dev/null
@@ -0,0 +1,7 @@
+// PR c++/19397
+// { dg-do compile }
+
+template<typename> struct A
+{
+    typedef int ::template; // { dg-error "template" }
+};