[Issue 22896] New: importC: 'function redeclaration with different type' should ignore const
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Mar 18 04:58:41 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22896
Issue ID: 22896
Summary: importC: 'function redeclaration with different type'
should ignore const
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: ImportC, rejects-valid
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: duser at neet.fi
void fn(int);
void fn(const int x)
{
}
Error: function `fn` redeclaration with different type
gcc and clang allow this without warnings
--
More information about the Digitalmars-d-bugs
mailing list