[Issue 22961] importC: K&R-style main function rejected
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 30 23:06:11 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22961
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #13927 "Fix 22961 - Don't reject valid K&R main's in C
files" was merged into master:
- 9c367327d706b1ba4708b395f97a37bd4ab22d3b by MoonlightSentinel:
Fix 22961 - Don't reject valid K&R main's in C files
K&R functions are implicitly variadic and hence triggered the error
if the declaration actually specified parameters (even if when their
types are correct).
This patch changes the check s.t. it allows implicitly variadic K&R
functions in C files but still reports an error for explicit `...`.
https://github.com/dlang/dmd/pull/13927
--
More information about the Digitalmars-d-bugs
mailing list