From 67c82b0a058d38b1e9fe0ea5da8da00d25ae86a6 Mon Sep 17 00:00:00 2001
From: reichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Wed, 7 Dec 2005 21:16:21 +0000
Subject: [PATCH] 	PR c++/19397 	* 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                  | 9 +++++++++
 gcc/testsuite/g++.dg/template/dtor3.C    | 2 +-
 gcc/testsuite/g++.dg/template/typedef3.C | 7 +++++++
 3 files changed, 17 insertions(+), 1 deletion(-)
 create mode 100644 gcc/testsuite/g++.dg/template/typedef3.C

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index ec769baab19a..2ba95edd529a 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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):
diff --git a/gcc/testsuite/g++.dg/template/dtor3.C b/gcc/testsuite/g++.dg/template/dtor3.C
index 7f4099861fb6..98c2ef6c18ac 100644
--- a/gcc/testsuite/g++.dg/template/dtor3.C
+++ b/gcc/testsuite/g++.dg/template/dtor3.C
@@ -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
index 000000000000..481f451d84e7
--- /dev/null
+++ b/gcc/testsuite/g++.dg/template/typedef3.C
@@ -0,0 +1,7 @@
+// PR c++/19397
+// { dg-do compile }
+
+template<typename> struct A
+{
+    typedef int ::template; // { dg-error "template" }
+};
-- 
GitLab