https://issues.dlang.org/show_bug.cgi?id=23143

Walter Bright <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Walter Bright <[email protected]> ---
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.

--

Reply via email to