[Issue 22344] New: importC: Semantic allows function to have number of arguments not match prototype
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 28 22:07:32 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22344
Issue ID: 22344
Summary: importC: Semantic allows function to have number of
arguments not match prototype
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: ibuclaw at gdcproject.org
This should error, but doesn't.
---
int func(int);
int func() // number of arguments doesn't match prototype.
{
return 0;
}
--
More information about the Digitalmars-d-bugs
mailing list