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
* [Bug c++/35747] [4.3/4.4 regression] ICE with undefined variable in statement expression
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 ` reichelt at gcc dot gnu dot org
2008-03-30 0:53 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-03-28 21:59 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.3.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35747
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/35747] [4.3/4.4 regression] ICE with undefined variable in statement expression
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
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-03-30 0:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2008-03-30 00:52 -------
Confirmed, only happens with the C++ front-end.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-03-30 00:52:26
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35747
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/35747] [4.3/4.4 regression] ICE with undefined variable in statement expression
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
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-04-15 9:30 UTC (permalink / raw)
To: gcc-bugs
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35747
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/35747] [4.3/4.4 regression] ICE with undefined variable in statement expression
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
` (2 preceding siblings ...)
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
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-04-22 13:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jakub at gcc dot gnu dot org 2008-04-22 13:12 -------
Apparently missing pop_stmt_list during error handling.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2008-03-30 00:52:26 |2008-04-22 13:12:19
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35747
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/35747] [4.3/4.4 regression] ICE with undefined variable in statement expression
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
` (3 preceding siblings ...)
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
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-04-22 22:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2008-04-22 22:07 -------
Subject: Bug 35747
Author: jakub
Date: Tue Apr 22 22:06:58 2008
New Revision: 134567
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=134567
Log:
PR c++/35747
* semantics.c (finish_stmt_expr): Call pop_stmt_list even if the stmt
expression is errorneous.
* g++.dg/ext/stmtexpr13.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/ext/stmtexpr13.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35747
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/35747] [4.3/4.4 regression] ICE with undefined variable in statement expression
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
` (4 preceding siblings ...)
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
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-04-22 22:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jakub at gcc dot gnu dot org 2008-04-22 22:15 -------
Subject: Bug 35747
Author: jakub
Date: Tue Apr 22 22:14:25 2008
New Revision: 134568
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=134568
Log:
PR c++/35747
* semantics.c (finish_stmt_expr): Call pop_stmt_list even if the stmt
expression is errorneous.
* g++.dg/ext/stmtexpr13.C: New test.
Added:
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/ext/stmtexpr13.C
Modified:
branches/gcc-4_3-branch/gcc/cp/ChangeLog
branches/gcc-4_3-branch/gcc/cp/semantics.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35747
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/35747] [4.3/4.4 regression] ICE with undefined variable in statement expression
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
` (5 preceding siblings ...)
2008-04-22 22:15 ` jakub at gcc dot gnu dot org
@ 2008-04-22 22:22 ` jakub at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-04-22 22:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jakub at gcc dot gnu dot org 2008-04-22 22:21 -------
Fixed.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
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).