This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31038] [4.1/4.2/4.3 regression] ICE with C99 style compound literal vs templates vs instiaiontion
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Mar 2007 00:26:51 -0000
- Subject: [Bug c++/31038] [4.1/4.2/4.3 regression] ICE with C99 style compound literal vs templates vs instiaiontion
- References: <bug-31038-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from mmitchel at gcc dot gnu dot org 2007-03-12 00:26 -------
Subject: Bug 31038
Author: mmitchel
Date: Mon Mar 12 00:26:39 2007
New Revision: 122829
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122829
Log:
PR c++/30328
* semantics.c (finish_typeof): Use unlowered_expr_type.
PR c++/30328
* g++.dg/ext/bitfield1.C: New test.
PR c++/31038
* parser.c (cp_parser_postfix_expression): Disallow compound
literals in constant expressions.
PR c++/31038
* g++.dg/template/complit2.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/ext/bitfield1.C
trunk/gcc/testsuite/g++.dg/template/complit2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31038