public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/30847]  New: [4.1/4.2/4.3 regression] ICE with invalid statement expression
@ 2007-02-18 22:37 reichelt at gcc dot gnu dot org
  2007-02-18 22:37 ` [Bug c++/30847] " reichelt at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-02-18 22:37 UTC (permalink / raw)
  To: gcc-bugs

The follwoing code snippet triggers an ICE since GCC 4.0.0:

=====================================
void foo(int i)
{
  (i ? 1 : 2) = ({ int X; });
}
=====================================

bug.cc: In function 'void foo(int)':
bug.cc:3: internal compiler error: in build_target_expr_with_type, at
cp/tree.c:382
Please submit a full bug report, [etc.]

The problem is similar to PR 30158, but alas not fixed with Andrew's patch.
It's even worse because it's not an error-recovery bug.


-- 
           Summary: [4.1/4.2/4.3 regression] ICE with invalid statement
                    expression
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-04-03 11:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-18 22:37 [Bug c++/30847] New: [4.1/4.2/4.3 regression] ICE with invalid statement expression reichelt at gcc dot gnu dot org
2007-02-18 22:37 ` [Bug c++/30847] " reichelt at gcc dot gnu dot org
2007-02-19 21:13 ` mmitchel at gcc dot gnu dot org
2007-03-09  4:16 ` bangerth at dealii dot org
2007-03-20  9:12 ` jakub at gcc dot gnu dot org
2007-04-03  9:08 ` jakub at gcc dot gnu dot org
2007-04-03  9:25 ` jakub at gcc dot gnu dot org
2007-04-03  9:28 ` jakub at gcc dot gnu dot org
2007-04-03 11:34 ` jakub at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).