public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35747]  New: [4.3/4.4 regression] ICE with undefined variable in statement expression
@ 2008-03-28 21:59 reichelt at gcc dot gnu dot org
  2008-03-28 21:59 ` [Bug c++/35747] " reichelt at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-03-28 21:59 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippets triggers an ICE since GCC 4.3.0:

=================================
void foo()
{
  ({ i; ({ i; }); 0; });
}
=================================

bug.cc: In function 'void foo()':
bug.cc:3: error: 'i' was not declared in this scope
gimplification failed:
 <statement_list 0x402277c4
    type <void_type 0x401a94e0 void VOID
        align 8 symtab 0 alias set -1 canonical type 0x401a94e0
        pointer_to_this <pointer_type 0x401a9548>>
    head (nil) tail (nil) stmts
>
bug.cc:3: internal compiler error: gimplification failed
Please submit a full bug report, [etc.]


-- 
           Summary: [4.3/4.4 regression] ICE with undefined variable in
                    statement expression
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, 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=35747


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

end of thread, other threads:[~2008-04-22 22:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-28 21:59 [Bug c++/35747] New: [4.3/4.4 regression] ICE with undefined variable in statement expression reichelt at gcc dot gnu dot org
2008-03-28 21:59 ` [Bug c++/35747] " reichelt at gcc dot gnu dot org
2008-03-30  0:53 ` pinskia at gcc dot gnu dot org
2008-04-15  9:30 ` jakub at gcc dot gnu dot org
2008-04-22 13:13 ` jakub at gcc dot gnu dot org
2008-04-22 22:08 ` jakub at gcc dot gnu dot org
2008-04-22 22:15 ` jakub at gcc dot gnu dot org
2008-04-22 22:22 ` 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).