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:
parent
ff3fdad27a
commit
b2fbe3f434
3 changed files with 17 additions and 1 deletions
|
@ -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):
|
||||
|
|
|
@ -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" }
|
||||
|
|
7
gcc/testsuite/g++.dg/template/typedef3.C
Normal file
7
gcc/testsuite/g++.dg/template/typedef3.C
Normal file
|
@ -0,0 +1,7 @@
|
|||
// PR c++/19397
|
||||
// { dg-do compile }
|
||||
|
||||
template<typename> struct A
|
||||
{
|
||||
typedef int ::template; // { dg-error "template" }
|
||||
};
|
Loading…
Add table
Reference in a new issue