This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/29731] [4.0/4.1/4.2/4.3 regression] ICE with statement expression as template parameter



------- Comment #8 from paolo at gcc dot gnu dot org  2007-09-05 09:32 -------
Subject: Bug 29731

Author: paolo
Date: Wed Sep  5 09:31:54 2007
New Revision: 128124

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128124
Log:
/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.

Added:
    trunk/gcc/testsuite/g++.dg/parse/template24.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29731


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]