public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/106465] ICE for VLA in struct in parameter of nested function
Date: Fri, 29 Jul 2022 07:15:44 +0000 [thread overview]
Message-ID: <bug-106465-4-a539o2T9nU@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-106465-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106465
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2022-07-29
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed. The ICE is the following
> ./cc1 -quiet t.c
t.c: In function 'f':
t.c:3:17: warning: anonymous struct declared inside parameter list will not be
visible outside of this definition or declaration
3 | void g(int m, struct { char p[m]; } b) { }
| ^~~~~~
t.c:1:5: internal compiler error: m from g referenced in f
1 | int f()
| ^
0x15818d9 convert_nonlocal_reference_op
/home/rguenther/src/trunk/gcc/tree-nested.cc:1164
next prev parent reply other threads:[~2022-07-29 7:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-28 15:10 [Bug c/106465] New: " muecker at gwdg dot de
2022-07-28 16:08 ` [Bug c/106465] " pinskia at gcc dot gnu.org
2022-07-29 7:15 ` rguenth at gcc dot gnu.org [this message]
2023-02-20 15:20 ` muecker at gwdg dot de
2023-03-24 23:09 ` muecker at gwdg dot de
2023-05-18 13:00 ` muecker at gwdg dot de
2023-05-19 20:52 ` muecker at gwdg dot de
2023-05-23 20:05 ` cvs-commit at gcc dot gnu.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-106465-4-a539o2T9nU@http.gcc.gnu.org/bugzilla/ \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).