public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/27382] New: [4.2 regression] ICE in c_common_truthvalue_conversion with label address
@ 2006-05-02 11:45 reichelt at gcc dot gnu dot org
2006-05-02 14:52 ` [Bug middle-end/27382] " pinskia at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-02 11:45 UTC (permalink / raw)
To: gcc-bugs
The following valid code snippet causes an ICE on mainline:
======================
void foo()
{
L:
!&&L;
}
======================
bug.c: In function 'foo':
bug.c:4: internal compiler error: tree check: expected tree that contains 'decl
with visibility' structure, have 'label_decl' in
c_common_truthvalue_conversion, at c-common.c:2503
Please submit a full bug report, [etc.]
--
Summary: [4.2 regression] ICE in c_common_truthvalue_conversion
with label address
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code, monitored
Severity: normal
Priority: P3
Component: middle-end
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=27382
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/27382] [4.2 regression] ICE in c_common_truthvalue_conversion with label address
2006-05-02 11:45 [Bug middle-end/27382] New: [4.2 regression] ICE in c_common_truthvalue_conversion with label address reichelt at gcc dot gnu dot org
@ 2006-05-02 14:52 ` pinskia at gcc dot gnu dot org
2006-05-08 7:57 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-02 14:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-05-02 14:52 -------
void foo()
{
L:
&&L != 0 ;
}
---
Most likely also fails but is done in a different place.
PARM_DECL has the same issue but I already filed/fixed them.
--
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 |2006-05-02 14:52:15
date| |
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27382
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/27382] [4.2 regression] ICE in c_common_truthvalue_conversion with label address
2006-05-02 11:45 [Bug middle-end/27382] New: [4.2 regression] ICE in c_common_truthvalue_conversion with label address reichelt at gcc dot gnu dot org
2006-05-02 14:52 ` [Bug middle-end/27382] " pinskia at gcc dot gnu dot org
@ 2006-05-08 7:57 ` pinskia at gcc dot gnu dot org
2006-06-04 18:43 ` mmitchel at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-08 7:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-05-08 07:57 -------
I am taking care about this one too.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27382
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/27382] [4.2 regression] ICE in c_common_truthvalue_conversion with label address
2006-05-02 11:45 [Bug middle-end/27382] New: [4.2 regression] ICE in c_common_truthvalue_conversion with label address reichelt at gcc dot gnu dot org
2006-05-02 14:52 ` [Bug middle-end/27382] " pinskia at gcc dot gnu dot org
2006-05-08 7:57 ` pinskia at gcc dot gnu dot org
@ 2006-06-04 18:43 ` mmitchel at gcc dot gnu dot org
2006-06-05 2:28 ` sayle at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-06-04 18:43 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27382
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/27382] [4.2 regression] ICE in c_common_truthvalue_conversion with label address
2006-05-02 11:45 [Bug middle-end/27382] New: [4.2 regression] ICE in c_common_truthvalue_conversion with label address reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-06-04 18:43 ` mmitchel at gcc dot gnu dot org
@ 2006-06-05 2:28 ` sayle at gcc dot gnu dot org
2006-06-05 2:31 ` sayle at gcc dot gnu dot org
2006-06-05 3:08 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: sayle at gcc dot gnu dot org @ 2006-06-05 2:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from sayle at gcc dot gnu dot org 2006-06-05 02:28 -------
Subject: Bug 27382
Author: sayle
Date: Mon Jun 5 02:28:20 2006
New Revision: 114380
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114380
Log:
PR middle-end/27382
* c-common.c (c_common_truthvalue_conversion): Explicitly check
for LABEL_DECL before calling DECL_WEAK.
PR c/27150
* c-typeck.c (build_binary_op): Likewise, explicitly check for
LABEL_DECL and PARM_DECL.
* gcc.dg/pr27150-1.c: New testcase.
* gcc.dg/pr27382-1.c: New testcase.
* gcc.dg/pr27382-2.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/pr27150-1.c
trunk/gcc/testsuite/gcc.dg/pr27382-1.c
trunk/gcc/testsuite/gcc.dg/pr27382-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-common.c
trunk/gcc/c-typeck.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27382
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/27382] [4.2 regression] ICE in c_common_truthvalue_conversion with label address
2006-05-02 11:45 [Bug middle-end/27382] New: [4.2 regression] ICE in c_common_truthvalue_conversion with label address reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-06-05 2:28 ` sayle at gcc dot gnu dot org
@ 2006-06-05 2:31 ` sayle at gcc dot gnu dot org
2006-06-05 3:08 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: sayle at gcc dot gnu dot org @ 2006-06-05 2:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from sayle at gcc dot gnu dot org 2006-06-05 02:31 -------
Subject: Bug 27382
Author: sayle
Date: Mon Jun 5 02:31:41 2006
New Revision: 114381
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114381
Log:
PR middle-end/27382
PR c/27150
* gcc.dg/pr27150-1.c: New testcase.
* gcc.dg/pr27382-1.c: New testcase.
* gcc.dg/pr27382-2.c: New testcase.
Modified:
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27382
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug middle-end/27382] [4.2 regression] ICE in c_common_truthvalue_conversion with label address
2006-05-02 11:45 [Bug middle-end/27382] New: [4.2 regression] ICE in c_common_truthvalue_conversion with label address reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2006-06-05 2:31 ` sayle at gcc dot gnu dot org
@ 2006-06-05 3:08 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-05 3:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pinskia at gcc dot gnu dot org 2006-06-05 03:08 -------
Fixed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27382
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-06-05 3:08 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-02 11:45 [Bug middle-end/27382] New: [4.2 regression] ICE in c_common_truthvalue_conversion with label address reichelt at gcc dot gnu dot org
2006-05-02 14:52 ` [Bug middle-end/27382] " pinskia at gcc dot gnu dot org
2006-05-08 7:57 ` pinskia at gcc dot gnu dot org
2006-06-04 18:43 ` mmitchel at gcc dot gnu dot org
2006-06-05 2:28 ` sayle at gcc dot gnu dot org
2006-06-05 2:31 ` sayle at gcc dot gnu dot org
2006-06-05 3:08 ` pinskia 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).