[Issue 18385] [REG 2.079] method cannot be overloaded with another extern(C) method
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Feb 23 10:58:03 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18385
--- Comment #6 from Jacob Carlborg <doob at me.com> ---
(In reply to Martin Nowak from comment #3)
> So you're bug report is about
>
> cat > bug.d << CODE
> struct S
> {
> extern(C) static void foo(int) {}
> extern(C) static void foo(double) {}
> }
> CODE
> dmd -c bug.d
> ----
> Error: function bug.S.foo(double) cannot be overloaded with another
> extern(C) function at /home/dawg/Code/D/bug.d(3)
> ----
>
> instead
> ?
Yes, I actually have a class. I just tried to reduce the test case as much as
possible.
--
More information about the Digitalmars-d-bugs
mailing list