https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109155
Bug ID: 109155
Summary: A note is diagnosed, without any warning or error
Product: gcc
Version: 12.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: bruno at clisp dot org
Target Milestone: ---
Created attachment 54682
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54682&action=edit
test case
In this test case, the compiler emits a 'note', without any 'warning' or
'error'.
$ gcc -Wall -S i.c
i.c: In function ‘main’:
i.c:2:35: note: ‘s’ declared here
2 | struct s { _Bool s: 1; _Bool t; } s;
| ^
Which leaves me, as the user, completely baffled.
This is new in version 12. In versions 11 and older, no diagnostic is emitted.