re PR c++/19397 (ICE with invalid typedef)

PR c++/19397
	* g++.dg/template/typedef3.C: New test.

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

From-SVN: r108187
This commit is contained in:
Volker Reichelt 2005-12-07 21:16:21 +00:00 committed by Volker Reichelt
parent ff3fdad27a
commit b2fbe3f434
3 changed files with 17 additions and 1 deletions

View 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):

View 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" }

View file

@ -0,0 +1,7 @@
// PR c++/19397
// { dg-do compile }
template<typename> struct A
{
typedef int ::template; // { dg-error "template" }
};