re PR c++/32190 (wrong error recovery on parsing template arguments)
2007-08-17 Paolo Carlini <pcarlini@suse.de> PR c++/32190 * g++.dg/parse/error31.C: New. From-SVN: r127597
This commit is contained in:
parent
2658bdae42
commit
9ab78e532d
2 changed files with 17 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-08-17 Paolo Carlini <pcarlini@suse.de>
|
||||
|
||||
PR c++/32190
|
||||
* g++.dg/parse/error31.C: New.
|
||||
|
||||
2007-08-17 Paolo Carlini <pcarlini@suse.de>
|
||||
|
||||
PR c++/32112
|
||||
|
|
12
gcc/testsuite/g++.dg/parse/error31.C
Normal file
12
gcc/testsuite/g++.dg/parse/error31.C
Normal file
|
@ -0,0 +1,12 @@
|
|||
// PR c++/32190
|
||||
|
||||
template<typename T> class foo{ };
|
||||
|
||||
int main() {
|
||||
foo<int> i;
|
||||
foo<foo<int> j; // { dg-error "template argument" }
|
||||
int k;
|
||||
int l;
|
||||
foo<int> m;
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Reference in a new issue