[Issue 18965] New: private attribute does not make function private when extern(Windows) attribute is used
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jun 10 04:06:23 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18965
Issue ID: 18965
Summary: private attribute does not make function private when
extern(Windows) attribute is used
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Keywords: link-failure
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: ben.stembridge at gmail.com
If you have multiple functions with the same name in different modules that
have the attribute extern(Windows) and are marked as private, it will cause a
link error. This also happens with extern(C) linkage
simple example with 2 modules:
module other;
extern(C)
private void test()
{
}
module main;
extern(C)
private void test()
{
}
int main(string[] argv)
{
test();
return 0;
}
Error 1: Previous Definition Different : _test
this is with dmd v2.080.0 windows x86
--
More information about the Digitalmars-d-bugs
mailing list