← Back to index
|
Original Bugzilla link
Bug 22317 – ImportC function redeclarations should be allowed in function scope
Status
NEW
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-09-18T09:00:28Z
Last change time
2024-12-13T19:18:28Z
Keywords
ImportC
Assigned to
No Owner
Creator
Walter Bright
See also
https://issues.dlang.org/show_bug.cgi?id=22263
,
https://issues.dlang.org/show_bug.cgi?id=22316
Moved to GitHub: dmd#19983 →
Comments
Comment #0
by bugzilla — 2021-09-18T09:00:28Z
This should compile: void test() { extern int f(); int f(); extern int x; extern int x; } ImportC gives two errors. Marked as minor because such code should be pretty rare.
Comment #1
by robert.schadek — 2024-12-13T19:18:28Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/dmd/issues/19983
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB