Bug 20672 – Incorrect overloads is compilable with dmd 2.091.0

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2020-03-13T13:34:50Z
Last change time
2024-12-13T19:07:40Z
Assigned to
No Owner
Creator
kntroh
Moved to GitHub: dmd#19678 →

Comments

Comment #0 by kntroh — 2020-03-13T13:34:50Z
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
Comment #1 by robert.schadek — 2024-12-13T19:07:40Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19678 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB