(but it compiles with every compiler I tested with -std=c99 and -std=c11)
Comment #2 by b2.temp — 2022-03-17T10:41:22Z
Importance enhancement -> normal, i.e "bug". If that compiles with all C compilers and that no macro is involved then it's a bug.
Comment #3 by trikkuz — 2022-03-17T10:56:04Z
default value for importance should be "not set" :)
Comment #4 by bugzilla — 2022-03-22T06:19:51Z
gcc and clang fail to compile it with the -Wpedantic switch:
"warning: ISO C forbids forward references to enum types"
C11 requires enum declarations to have members.
Comment #5 by duser — 2022-03-22T16:42:38Z
here's a similar one that gcc and clang accept:
enum A { a };
typedef enum A B;
maybe this is what the issue submitter meant?
glibc headers have two instances of this pattern with the enum defined before the typedef