[Issue 7063] No error or warning for conflicting D and C symbols
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 15 14:31:23 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=7063
Iain Buclaw <ibuclaw at gdcproject.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |backend
--- Comment #6 from Iain Buclaw <ibuclaw at gdcproject.org> ---
This is an error when compiling with gdc (even if it could be more clearer as
to why it conflicts). This error needs to be there as the assembler would
otherwise complain about duplicate symbols.
---
$ gdc test.d
test.d:4:6: error: function ‘test.foo’ at test.d:4:6 conflicts with function
‘test._D4test3fooFZv’ at test.d:3:16
4 | void foo() { writeln(2); }
| ^
---
--
More information about the Digitalmars-d-bugs
mailing list