public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/98379] New: Unknown tree: c_maybe_const_expr in a warning
@ 2020-12-18 18:31 msebor at gcc dot gnu.org
2021-01-05 9:09 ` [Bug c/98379] " rguenth at gcc dot gnu.org
2021-09-18 22:31 ` pinskia at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: msebor at gcc dot gnu.org @ 2020-12-18 18:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98379
Bug ID: 98379
Summary: Unknown tree: c_maybe_const_expr in a warning
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: msebor at gcc dot gnu.org
Target Milestone: ---
The output of the warning below is garbled. The pretty-printer that formats
the type doesn't know how to cope with the representation of the !*a
expression:
$ cat t.c && gcc -O2 -S -Wall t.c
int f (int n, int*, int[n]);
int f (int n, int *a, int[!*a]);
t.c:2:23: warning: argument 3 of type ‘int[(*a) == 0]’ declared with mismatched
bound ‘<<< Unknown tree: c_maybe_const_expr
*a >>> == 0’ [-Wvla-parameter]
2 | int f (int n, int *a, int[!*a]);
| ^~~~~~~~
t.c:1:21: note: previously declared as ‘int[n]’ with bound argument 1
1 | int f (int n, int*, int[n]);
| ~~~~~ ^~~~~~
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c/98379] Unknown tree: c_maybe_const_expr in a warning
2020-12-18 18:31 [Bug c/98379] New: Unknown tree: c_maybe_const_expr in a warning msebor at gcc dot gnu.org
@ 2021-01-05 9:09 ` rguenth at gcc dot gnu.org
2021-09-18 22:31 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-01-05 9:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98379
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Version|unknown |11.0
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Maybe the language specific printer should be used if you feed it FE specific
GENERIC?
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c/98379] Unknown tree: c_maybe_const_expr in a warning
2020-12-18 18:31 [Bug c/98379] New: Unknown tree: c_maybe_const_expr in a warning msebor at gcc dot gnu.org
2021-01-05 9:09 ` [Bug c/98379] " rguenth at gcc dot gnu.org
@ 2021-09-18 22:31 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-18 22:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98379
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Last reconfirmed| |2021-09-18
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-09-18 22:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-18 18:31 [Bug c/98379] New: Unknown tree: c_maybe_const_expr in a warning msebor at gcc dot gnu.org
2021-01-05 9:09 ` [Bug c/98379] " rguenth at gcc dot gnu.org
2021-09-18 22:31 ` 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).