public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/35746] [4.3/4.4 regression] ICE with undefined variables
2008-03-28 21:54 [Bug c/35746] New: [4.3/4.4 regression] ICE with undefined variables reichelt at gcc dot gnu dot org
@ 2008-03-28 21:54 ` reichelt at gcc dot gnu dot org
2008-03-30 0:33 ` pinskia at gcc dot gnu dot org
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-03-28 21:54 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=35746
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/35746] New: [4.3/4.4 regression] ICE with undefined variables
@ 2008-03-28 21:54 reichelt at gcc dot gnu dot org
2008-03-28 21:54 ` [Bug c/35746] " reichelt at gcc dot gnu dot org
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-03-28 21:54 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippets triggers an ICE since GCC 4.3.0:
======================
int foo(int i);
void bar()
{
__complex__ int i;
X j;
if (i = foo(j))
;
}
======================
bug.c: In function 'bar':
bug.c:6: error: 'X' undeclared (first use in this function)
bug.c:6: error: (Each undeclared identifier is reported only once
bug.c:6: error: for each function it appears in.)
bug.c:6: error: expected ';' before 'j'
bug.c:8: error: 'j' undeclared (first use in this function)
bug.c:8: internal compiler error: in create_tmp_from_val, at gimplify.c:535
Please submit a full bug report, [etc.]
The C++ frontend is not affected.
--
Summary: [4.3/4.4 regression] ICE with undefined variables
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=35746
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/35746] [4.3/4.4 regression] ICE with undefined variables
2008-03-28 21:54 [Bug c/35746] New: [4.3/4.4 regression] ICE with undefined variables reichelt at gcc dot gnu dot org
2008-03-28 21:54 ` [Bug c/35746] " reichelt at gcc dot gnu dot org
@ 2008-03-30 0:33 ` pinskia at gcc dot gnu dot org
2008-03-30 0:51 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-03-30 0:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2008-03-30 00:32 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-03-30 00:32:20
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35746
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/35746] [4.3/4.4 regression] ICE with undefined variables
2008-03-28 21:54 [Bug c/35746] New: [4.3/4.4 regression] ICE with undefined variables reichelt at gcc dot gnu dot org
2008-03-28 21:54 ` [Bug c/35746] " reichelt at gcc dot gnu dot org
2008-03-30 0:33 ` pinskia at gcc dot gnu dot org
@ 2008-03-30 0:51 ` pinskia at gcc dot gnu dot org
2008-04-15 9:32 ` jakub at gcc dot gnu dot org
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-03-30 0:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2008-03-30 00:50 -------
So this was introduced by the gimplify_modify_expr changes. The C++ front-end
actually produces error_mark_node for the call, maybe the C front-end should do
the same.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35746
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/35746] [4.3/4.4 regression] ICE with undefined variables
2008-03-28 21:54 [Bug c/35746] New: [4.3/4.4 regression] ICE with undefined variables reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2008-03-30 0:51 ` pinskia at gcc dot gnu dot org
@ 2008-04-15 9:32 ` jakub at gcc dot gnu dot org
2008-06-06 15:04 ` rguenth at gcc dot gnu dot org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-04-15 9:32 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=35746
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/35746] [4.3/4.4 regression] ICE with undefined variables
2008-03-28 21:54 [Bug c/35746] New: [4.3/4.4 regression] ICE with undefined variables reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2008-04-15 9:32 ` jakub at gcc dot gnu dot org
@ 2008-06-06 15:04 ` rguenth at gcc dot gnu dot org
2008-08-05 15:25 ` aldyh at gcc dot gnu dot org
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-06-06 15:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2008-06-06 14:59 -------
4.3.1 is being released, adjusting target milestone.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.3.1 |4.3.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35746
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/35746] [4.3/4.4 regression] ICE with undefined variables
2008-03-28 21:54 [Bug c/35746] New: [4.3/4.4 regression] ICE with undefined variables reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2008-06-06 15:04 ` rguenth at gcc dot gnu dot org
@ 2008-08-05 15:25 ` aldyh at gcc dot gnu dot org
2008-08-08 21:42 ` [Bug c/35746] [4.3 " reichelt at gcc dot gnu dot org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: aldyh at gcc dot gnu dot org @ 2008-08-05 15:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from aldyh at gcc dot gnu dot org 2008-08-05 15:24 -------
I can no longer reproduce this bug on either the 4.3 branch or mainline-- for
both C and C++. If there is no update on this in the next week, I will close
the bug.
--
aldyh at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |aldyh at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35746
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/35746] [4.3 regression] ICE with undefined variables
2008-03-28 21:54 [Bug c/35746] New: [4.3/4.4 regression] ICE with undefined variables reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2008-08-05 15:25 ` aldyh at gcc dot gnu dot org
@ 2008-08-08 21:42 ` reichelt at gcc dot gnu dot org
2008-08-08 23:24 ` aldyh at gcc dot gnu dot org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-08-08 21:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from reichelt at gcc dot gnu dot org 2008-08-08 21:40 -------
I can still reproduce this on the 4.3 branch as of 2008-08-07.
On mainline the bug disappeared between 2008-07-29 and 2008-08-02.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.3/4.4 regression] ICE |[4.3 regression] ICE with
|with undefined variables |undefined variables
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35746
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/35746] [4.3 regression] ICE with undefined variables
2008-03-28 21:54 [Bug c/35746] New: [4.3/4.4 regression] ICE with undefined variables reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2008-08-08 21:42 ` [Bug c/35746] [4.3 " reichelt at gcc dot gnu dot org
@ 2008-08-08 23:24 ` aldyh at gcc dot gnu dot org
2008-08-08 23:27 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: aldyh at gcc dot gnu dot org @ 2008-08-08 23:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from aldyh at gcc dot gnu dot org 2008-08-08 23:23 -------
(In reply to comment #5)
> I can still reproduce this on the 4.3 branch as of 2008-08-07.
> On mainline the bug disappeared between 2008-07-29 and 2008-08-02.
>
I see the error, but there is no longer an ICE.
$ ./cc1 --version
GNU C (GCC) version 4.3.2 20080808 (prerelease) [gcc-4_3-branch revision
138890] (x86_64-unknown-linux-gnu)
$ ./cc1 a.c -O2
bar
a.c: In function 'bar':
a.c:6: error: 'X' undeclared (first use in this function)
a.c:6: error: (Each undeclared identifier is reported only once
a.c:6: error: for each function it appears in.)
a.c:6: error: expected ';' before 'j'
a.c:8: error: 'j' undeclared (first use in this function)
a.c:8: confused by earlier errors, bailing out
Is this not the expected behavior?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35746
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/35746] [4.3 regression] ICE with undefined variables
2008-03-28 21:54 [Bug c/35746] New: [4.3/4.4 regression] ICE with undefined variables reichelt at gcc dot gnu dot org
` (7 preceding siblings ...)
2008-08-08 23:24 ` aldyh at gcc dot gnu dot org
@ 2008-08-08 23:27 ` pinskia at gcc dot gnu dot org
2008-08-12 6:49 ` reichelt at gcc dot gnu dot org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-08-08 23:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from pinskia at gcc dot gnu dot org 2008-08-08 23:25 -------
The ICE is there still, you just don't see it:
> a.c:8: confused by earlier errors, bailing out
That means there was an ICE after other errors had happened :).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35746
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/35746] [4.3 regression] ICE with undefined variables
2008-03-28 21:54 [Bug c/35746] New: [4.3/4.4 regression] ICE with undefined variables reichelt at gcc dot gnu dot org
` (8 preceding siblings ...)
2008-08-08 23:27 ` pinskia at gcc dot gnu dot org
@ 2008-08-12 6:49 ` reichelt at gcc dot gnu dot org
2008-08-12 14:07 ` aldyh at gcc dot gnu dot org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-08-12 6:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from reichelt at gcc dot gnu dot org 2008-08-12 06:48 -------
As Andrew Pinski pointed out, we suppress ICEs after regular errors.
You have to configure the compiler with --enable-checking to see the real ICE.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35746
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/35746] [4.3 regression] ICE with undefined variables
2008-03-28 21:54 [Bug c/35746] New: [4.3/4.4 regression] ICE with undefined variables reichelt at gcc dot gnu dot org
` (9 preceding siblings ...)
2008-08-12 6:49 ` reichelt at gcc dot gnu dot org
@ 2008-08-12 14:07 ` aldyh at gcc dot gnu dot org
2008-08-12 14:07 ` aldyh at gcc dot gnu dot org
2008-08-12 17:15 ` andreasmeier80 at gmx dot de
12 siblings, 0 replies; 14+ messages in thread
From: aldyh at gcc dot gnu dot org @ 2008-08-12 14:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from aldyh at gcc dot gnu dot org 2008-08-12 14:06 -------
http://gcc.gnu.org/ml/gcc-patches/2008-08/msg00778.html
--
aldyh at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35746
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/35746] [4.3 regression] ICE with undefined variables
2008-03-28 21:54 [Bug c/35746] New: [4.3/4.4 regression] ICE with undefined variables reichelt at gcc dot gnu dot org
` (10 preceding siblings ...)
2008-08-12 14:07 ` aldyh at gcc dot gnu dot org
@ 2008-08-12 14:07 ` aldyh at gcc dot gnu dot org
2008-08-12 17:15 ` andreasmeier80 at gmx dot de
12 siblings, 0 replies; 14+ messages in thread
From: aldyh at gcc dot gnu dot org @ 2008-08-12 14:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from aldyh at gcc dot gnu dot org 2008-08-12 14:05 -------
Subject: Bug 35746
Author: aldyh
Date: Tue Aug 12 14:04:18 2008
New Revision: 139018
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139018
Log:
PR c/35746
* gimplify.c (gimplify_expr): Do not convert MODIFY_EXPR to
GIMPLE_MODIFY_STMT upon GS_ERROR.
Added:
branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/pr35746.c
Modified:
branches/gcc-4_3-branch/gcc/ChangeLog
branches/gcc-4_3-branch/gcc/gimplify.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35746
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c/35746] [4.3 regression] ICE with undefined variables
2008-03-28 21:54 [Bug c/35746] New: [4.3/4.4 regression] ICE with undefined variables reichelt at gcc dot gnu dot org
` (11 preceding siblings ...)
2008-08-12 14:07 ` aldyh at gcc dot gnu dot org
@ 2008-08-12 17:15 ` andreasmeier80 at gmx dot de
12 siblings, 0 replies; 14+ messages in thread
From: andreasmeier80 at gmx dot de @ 2008-08-12 17:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from andreasmeier80 at gmx dot de 2008-08-12 17:14 -------
Should the testcase go also in mainline?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35746
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2008-08-12 17:15 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-28 21:54 [Bug c/35746] New: [4.3/4.4 regression] ICE with undefined variables reichelt at gcc dot gnu dot org
2008-03-28 21:54 ` [Bug c/35746] " reichelt at gcc dot gnu dot org
2008-03-30 0:33 ` pinskia at gcc dot gnu dot org
2008-03-30 0:51 ` pinskia at gcc dot gnu dot org
2008-04-15 9:32 ` jakub at gcc dot gnu dot org
2008-06-06 15:04 ` rguenth at gcc dot gnu dot org
2008-08-05 15:25 ` aldyh at gcc dot gnu dot org
2008-08-08 21:42 ` [Bug c/35746] [4.3 " reichelt at gcc dot gnu dot org
2008-08-08 23:24 ` aldyh at gcc dot gnu dot org
2008-08-08 23:27 ` pinskia at gcc dot gnu dot org
2008-08-12 6:49 ` reichelt at gcc dot gnu dot org
2008-08-12 14:07 ` aldyh at gcc dot gnu dot org
2008-08-12 14:07 ` aldyh at gcc dot gnu dot org
2008-08-12 17:15 ` andreasmeier80 at gmx dot de
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).