public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/27420] New: ICE on invalid function definition
@ 2006-05-04 14:57 reichelt at gcc dot gnu dot org
2006-05-05 1:20 ` [Bug c/27420] " reichelt at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-04 14:57 UTC (permalink / raw)
To: gcc-bugs
The C frontend ICEs (since at least GCC 2.95.3) on the following
invalid code snippet:
==============================
void foo();
void foo(struct A a) {}
==============================
bug1.c:2: warning: 'struct A' declared inside parameter list
bug1.c:2: warning: its scope is only this definition or declaration, which is
probably not what you want
bug1.c:2: error: parameter 1 ('a') has incomplete type
bug1.c:2: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in self_promoting_args_p, at c-common.c:3556
Please submit a full bug report, [etc.]
--
Summary: ICE on invalid function definition
Product: gcc
Version: 4.2.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=27420
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/27420] ICE on invalid function definition
2006-05-04 14:57 [Bug c/27420] New: ICE on invalid function definition reichelt at gcc dot gnu dot org
@ 2006-05-05 1:20 ` reichelt at gcc dot gnu dot org
2006-05-05 1:47 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-05 1:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from reichelt at gcc dot gnu dot org 2006-05-05 01:20 -------
Testing a patch.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |reichelt at gcc dot gnu dot
|dot org |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27420
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/27420] ICE on invalid function definition
2006-05-04 14:57 [Bug c/27420] New: ICE on invalid function definition reichelt at gcc dot gnu dot org
2006-05-05 1:20 ` [Bug c/27420] " reichelt at gcc dot gnu dot org
@ 2006-05-05 1:47 ` pinskia at gcc dot gnu dot org
2006-05-05 20:03 ` patchapp at dberlin dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-05 1:47 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-05-05 01:46:51
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27420
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/27420] ICE on invalid function definition
2006-05-04 14:57 [Bug c/27420] New: ICE on invalid function definition reichelt at gcc dot gnu dot org
2006-05-05 1:20 ` [Bug c/27420] " reichelt at gcc dot gnu dot org
2006-05-05 1:47 ` pinskia at gcc dot gnu dot org
@ 2006-05-05 20:03 ` patchapp at dberlin dot org
2006-05-22 12:24 ` reichelt at gcc dot gnu dot org
2006-05-22 12:27 ` reichelt at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: patchapp at dberlin dot org @ 2006-05-05 20:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from patchapp at dberlin dot org 2006-05-05 20:03 -------
Subject: Bug number PR c/27420
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-05/msg00203.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27420
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/27420] ICE on invalid function definition
2006-05-04 14:57 [Bug c/27420] New: ICE on invalid function definition reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-05-05 20:03 ` patchapp at dberlin dot org
@ 2006-05-22 12:24 ` reichelt at gcc dot gnu dot org
2006-05-22 12:27 ` reichelt at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-22 12:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from reichelt at gcc dot gnu dot org 2006-05-22 12:23 -------
Subject: Bug 27420
Author: reichelt
Date: Mon May 22 12:23:44 2006
New Revision: 113976
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113976
Log:
PR c/27420
* c-common.c (self_promoting_args_p): Skip erroneous args.
* gcc.dg/func-args-2.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/func-args-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-common.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27420
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/27420] ICE on invalid function definition
2006-05-04 14:57 [Bug c/27420] New: ICE on invalid function definition reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-05-22 12:24 ` reichelt at gcc dot gnu dot org
@ 2006-05-22 12:27 ` reichelt at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-22 12:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from reichelt at gcc dot gnu dot org 2006-05-22 12:27 -------
Fixed on mainline.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27420
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-05-22 12:27 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-04 14:57 [Bug c/27420] New: ICE on invalid function definition reichelt at gcc dot gnu dot org
2006-05-05 1:20 ` [Bug c/27420] " reichelt at gcc dot gnu dot org
2006-05-05 1:47 ` pinskia at gcc dot gnu dot org
2006-05-05 20:03 ` patchapp at dberlin dot org
2006-05-22 12:24 ` reichelt at gcc dot gnu dot org
2006-05-22 12:27 ` reichelt 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).