Thread overview
[Issue 7063] No error or warning for conflicting D and C symbols
Jul 08, 2017
Vladimir Panteleev
Jul 10, 2017
anonymous4
Jul 10, 2017
Vladimir Panteleev
Dec 17, 2022
Iain Buclaw
Jan 15, 2023
Iain Buclaw
October 15, 2016
https://issues.dlang.org/show_bug.cgi?id=7063

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |bootcamp
                 CC|                            |andrei@erdani.com

--
July 08, 2017
https://issues.dlang.org/show_bug.cgi?id=7063

Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
           Hardware|x86                         |All

--
July 10, 2017
https://issues.dlang.org/show_bug.cgi?id=7063

--- Comment #4 from anonymous4 <dfj1esp02@sneakemail.com> ---
This can be reliably diagnosed only by the linker, since duplicate symbols can be buried in libraries or come from different object files.

--
July 10, 2017
https://issues.dlang.org/show_bug.cgi?id=7063

--- Comment #5 from Vladimir Panteleev <dlang-bugzilla@thecybershadow.net> ---
(In reply to anonymous4 from comment #4)
> This can be reliably diagnosed only by the linker, since duplicate symbols can be buried in libraries or come from different object files.

The compiler probably shouldn't be passing garbage to the linker if it can help it, though.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=7063

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3

--
January 15, 2023
https://issues.dlang.org/show_bug.cgi?id=7063

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |backend

--- Comment #6 from Iain Buclaw <ibuclaw@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); }
      |      ^
---

--
February 09
https://issues.dlang.org/show_bug.cgi?id=7063

Chance Snow <git@chancesnow.me> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |git@chancesnow.me

--