This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16112] New: [3.5 regression] ICE with statement expression in return statement
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jun 2004 12:25:40 -0000
- Subject: [Bug c++/16112] New: [3.5 regression] ICE with statement expression in return statement
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hi Jason,
your patch
http://gcc.gnu.org/ml/gcc-cvs/2004-06/msg00737.html
broke the following testcase (inspired by PR 11295) on mainline:
========================================
struct A
{
A();
};
A foo() { return ({ A(); }); }
========================================
Compiling this with "g++ -c" I get:
bug.cc: In function `A foo()':
bug.cc:11: internal compiler error: in gimplify_expr, at gimplify.c:3452
Please submit a full bug report, [etc.]
Could you please have a look?
--
Summary: [3.5 regression] ICE with statement expression in return
statement
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: critical
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,jason at gcc dot gnu dot
org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16112