struct block *tmp; struct block {}; void block(void); void block(void){} test.c(2): Error: struct `test.block` already exists at test.c(1). Perhaps in another function with the same name?
@WalterBright created dlang/dmd pull request #13931 "fix Issue 22927 - importC: 'struct already exists' with forward refer…" fixing this issue: - fix Issue 22927 - importC: 'struct already exists' with forward reference and function with same name https://github.com/dlang/dmd/pull/13931
dlang/dmd pull request #13931 "fix Issue 22927 - importC: 'struct already exists' with forward refer…" was merged into master: - 42047a8ba511e062f34429e1db7b191e64365d2f by Walter Bright: fix Issue 22927 - importC: 'struct already exists' with forward reference and function with same name https://github.com/dlang/dmd/pull/13931