public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/103679] New: ICE after error on nested function with VLA as argument
@ 2021-12-13 4:29 pinskia at gcc dot gnu.org
2021-12-13 4:29 ` [Bug c/103679] " pinskia at gcc dot gnu.org
2021-12-13 4:34 ` pinskia at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-13 4:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103679
Bug ID: 103679
Summary: ICE after error on nested function with VLA as
argument
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Keywords: error-recovery, ice-on-invalid-code
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
Take:
void fn1 ()
{
void fnx ()
int n;
int a[n];
}
---- CUT ---
We currently have error messages and then some ICEs:
<source>: In function 'fnx':
<source>:7:1: error: expected declaration specifiers before '}' token
7 | }
| ^
<source>:6:7: error: declaration for parameter 'a' but no such parameter
6 | int a[n];
| ^
<source>:5:7: error: declaration for parameter 'n' but no such parameter
5 | int n;
| ^
<source>:8: error: expected '{' at end of input
<source>: In function 'fn1':
<source>:7:1: error: expected declaration or statement at end of input
7 | }
| ^
<source>:2:6: internal compiler error: n from fnx referenced in fn1
2 | void fn1 ()
| ^~~
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c/103679] ICE after error on nested function with VLA as argument
2021-12-13 4:29 [Bug c/103679] New: ICE after error on nested function with VLA as argument pinskia at gcc dot gnu.org
@ 2021-12-13 4:29 ` pinskia at gcc dot gnu.org
2021-12-13 4:34 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-13 4:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103679
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=60085
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note this was split out of bug 60085.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c/103679] ICE after error on nested function with VLA as argument
2021-12-13 4:29 [Bug c/103679] New: ICE after error on nested function with VLA as argument pinskia at gcc dot gnu.org
2021-12-13 4:29 ` [Bug c/103679] " pinskia at gcc dot gnu.org
@ 2021-12-13 4:34 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-13 4:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103679
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|UNCONFIRMED |RESOLVED
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Except it is a dup of bug 98621.
*** This bug has been marked as a duplicate of bug 98621 ***
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-12-13 4:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-13 4:29 [Bug c/103679] New: ICE after error on nested function with VLA as argument pinskia at gcc dot gnu.org
2021-12-13 4:29 ` [Bug c/103679] " pinskia at gcc dot gnu.org
2021-12-13 4:34 ` pinskia at gcc dot gnu.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).