From: Paolo Carlini Date: Fri, 17 Aug 2007 21:38:19 +0000 (+0000) Subject: re PR c++/32190 (wrong error recovery on parsing template arguments) X-Git-Tag: releases/gcc-4.2.2~145 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1089abe7db7dfbecad66864f81362cc6bd15fa2b;p=thirdparty%2Fgcc.git re PR c++/32190 (wrong error recovery on parsing template arguments) 2007-08-17 Paolo Carlini PR c++/32190 * g++.dg/parse/error31.C: New. From-SVN: r127598 --- diff --git a/gcc/testsuite/g++.dg/parse/error31.C b/gcc/testsuite/g++.dg/parse/error31.C new file mode 100644 index 000000000000..5264f442b311 --- /dev/null +++ b/gcc/testsuite/g++.dg/parse/error31.C @@ -0,0 +1,12 @@ +// PR c++/32190 + +template class foo{ }; + +int main() { + foo i; + foo j; // { dg-error "template argument" } + int k; + int l; + foo m; + return 0; + }