[Issue 20672] New: Incorrect overloads is compilable with dmd 2.091.0
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Mar 13 13:34:50 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=20672
Issue ID: 20672
Summary: Incorrect overloads is compilable with dmd 2.091.0
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: kntroh at gmail.com
This code is compilable, but is incorrect:
extern (C) {
void func(int);
void func(double, double);
void func(char[42]);
}
I think that overloading with extern(C) or extern(Windows) should be prohibited
or warned.
See also: https://github.com/ldc-developers/ldc/issues/3362
--
More information about the Digitalmars-d-bugs
mailing list