[Issue 22961] importC: K&R-style main function rejected
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 30 10:28:21 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22961
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@MoonlightSentinel created dlang/dmd pull request #13927 "Fix 22961 - Don't
reject valid K&R main's in C files" fixing this issue:
- 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