duplicate symbols
Steven Schveighoffer via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Apr 10 05:26:27 PDT 2015
On 4/10/15 5:54 AM, Dmitri Makarov wrote:
> Should the compiler issue an error for this code?
>
> struct S
> {
> }
>
> string generate(S t)
> {
> return "";
> }
>
> string generate(S t)
> {
> return "huh?";
> }
>
> It compiles and breaks with multiple definition of
> '_D1b8generateFS1b1SZAya' at link time. dmd v2.067
There's a bug on this: https://issues.dlang.org/show_bug.cgi?id=2789
-Steve
More information about the Digitalmars-d-learn
mailing list