[Issue 23039] importC: declaration with array length has itself in scope

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 22 04:33:48 UTC 2022


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

duser at neet.fi changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|minor                       |normal

--- Comment #1 from duser at neet.fi ---
also seen with function parameter types:

typedef int y;
void fn3() { void(*y)(y); }
struct S3 { void(*y)(y); };

test.c(2): Error: circular reference to variable `y`
test.c(3): Error: circular reference to variable `test.S3.y`

these should use the typedef "y" but instead use the function pointer
declaration itself

--


More information about the Digitalmars-d-bugs mailing list