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 #3 from simartin at gcc dot gnu dot org  2006-12-31 16:09 -------
Subject: Bug 29731

Author: simartin
Date: Sun Dec 31 16:09:07 2006
New Revision: 120299

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120299
Log:
2006-12-31  Simon Martin  <simartin@users.sourceforge.net>

        PR c++/29731
        * parser.c (cp_parser_primary_expression): Return error_mark_node when
        a statement-expression is found outside of a function body.

Added:
    trunk/gcc/testsuite/g++.dg/parse/template22.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]