[Issue 23143] ImportC: forward enum declarations need to be supported
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jul 7 07:12:50 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23143
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at digitalmars.com
--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> ---
It seems both gcc and clang support it unless the -Wpedantic is supplied:
fix23143> gcc -c test.c -std=c11 -Wpedantic
test.c:3:6: warning: ISO C forbids forward references to âenumâ types
[-Wpedantic]
enum _POOL_TYPE;
^
fix23143> clang -c test.c -std=c11 -Wpedantic
test.c:3:6: warning: ISO C forbids forward references to 'enum' types
[-Wpedantic]
enum _POOL_TYPE;
^
1 warning generated.
So I suppose we are doomed to support it.
--
More information about the Digitalmars-d-bugs
mailing list