[Issue 21932] importC: struct 'STRUCT' conflicts with struct 'STRUCT'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 19 18:02:29 UTC 2021


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

Iain Buclaw <ibuclaw at gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw at gdcproject.org

--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Iain Buclaw from comment #0)
> The parser allows implicit typedefs, which is not valid C.
> ---
> struct STRUCT { void *opaque; };
> STRUCT mystruct;  // Should error.
> ---
This is probably not so easily solvable though, as the error should happen in
the semantic (but the semantic follows D rules!)

The immediate issue should focus on getting `struct S s;` working.

--


More information about the Digitalmars-d-bugs mailing list