https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108189
Bug ID: 108189
Summary: anonymous struct declared inside parameter list will
not be visible outside of this definition or
declaration
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: james.hilliard1 at gmail dot com
Target Milestone: ---
I'm seeing this error which does not occur in llvm for a bpf
test(btf_dump_test_case_bitfields.c) in bpf-next:
progs/btf_dump_test_case_bitfields.c:85:7: error: anonymous struct declared
inside parameter list will not be visible outside of this definition or
declaration [-Werror]
85 | int f(struct {
| ^~~~~~