PR c++/29731 (again)
authorPaolo Carlini <pcarlini@suse.de>
Wed, 5 Sep 2007 09:31:54 +0000 (09:31 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 5 Sep 2007 09:31:54 +0000 (09:31 +0000)
commit03ba2e11227bfe13580b80367feeb196035109ed
treea4b2a503b33ca25b6844be28fa7c9c65eac6f811
parent50e47dba16df43b6d45849e364cce6963950d3ce
PR c++/29731 (again)

/cp
2007-09-05  Paolo Carlini  <pcarlini@suse.de>

PR c++/29731 (again)
* parser.c (cp_parser_primary_expression): Return error_mark_node
when a statement-expression is found in a template-argument list.

/testsuite
2007-09-05  Paolo Carlini  <pcarlini@suse.de>

PR c++/29731
* g++.dg/parse/template24.C: New.

From-SVN: r128124
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/template24.C [new file with mode: 0644]