public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/20147] New: [3.4/4.0 regression] ICE on undefined variable in statement expression
@ 2005-02-22 22:02 reichelt at gcc dot gnu dot org
  2005-02-22 22:06 ` [Bug c++/20147] " pinskia at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-02-22 22:02 UTC (permalink / raw)
  To: gcc-bugs

The C++ frontend issues an ICE when compiling the following invalid
code snippet:

================
void foo()
{
    ({x;});
}
================

bug.cc: In function 'void foo()':
bug.cc:3: error: 'x' was not declared in this scope
bug.cc:3: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in finish_stmt_expr_expr, at cp/semantics.c:1546
Please submit a full bug report, [etc.]

The appeared in gcc 3.4.0.

-- 
           Summary: [3.4/4.0 regression] ICE on undefined variable in
                    statement expression
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          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


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


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

end of thread, other threads:[~2005-03-21 15:37 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-22 22:02 [Bug c++/20147] New: [3.4/4.0 regression] ICE on undefined variable in statement expression reichelt at gcc dot gnu dot org
2005-02-22 22:06 ` [Bug c++/20147] " pinskia at gcc dot gnu dot org
2005-02-23 10:35 ` pinskia at gcc dot gnu dot org
2005-03-17 18:32 ` [Bug c++/20147] [3.4/4.0/4.1 " pcarlini at suse dot de
2005-03-17 22:11 ` pinskia at gcc dot gnu dot org
2005-03-21 11:50 ` cvs-commit at gcc dot gnu dot org
2005-03-21 11:53 ` cvs-commit at gcc dot gnu dot org
2005-03-21 12:50 ` [Bug c++/20147] [3.4/4.0 " cvs-commit at gcc dot gnu dot org
2005-03-21 12:55 ` cvs-commit at gcc dot gnu dot org
2005-03-21 15:26 ` cvs-commit at gcc dot gnu dot org
2005-03-21 15:37 ` pcarlini at suse dot de
2005-03-21 15:37 ` cvs-commit 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).