https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124303
Bug ID: 124303
Summary: C23: redeclaration of struct with function pointer
with const pointer to struct as argument
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: uecker at gcc dot gnu.org
Target Milestone: ---
The following code is rejected, but should be allowed in C23:
struct s { void (*p)(const struct s*); };
struct s { void (*p)(const struct s*); };
https://godbolt.org/z/x7xcxEGTG