Commit b2fbe3f4 by Volker Reichelt Committed by Volker Reichelt

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
parent ff3fdad2
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):
// PR c++/19762
template<int> struct A { ~A(){} }; // { dg-error "" }
template A<>::~A(); // { dg-error "" }
template A<>::~A(); // { dg-error "template|declaration" }
// PR c++/19397
// { dg-do compile }
template<typename> struct A
{
typedef int ::template; // { dg-error "template" }
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment