C++ Logo

std-proposals

Advanced search

Re: [std-proposals] D3803R0 More standard forms of main

From: Paul Caprioli <paul_at_[hidden]>
Date: Tue, 22 Jul 2025 19:53:07 +0000
>> "not supported by older compilers" could be raised as an argument against literally any new feature. > And it specifically should not be used against this feature, because IIUC the entire point of this feature is that every old compiler already supports it. I specifically mentioned "not supported by older compilers" because this proposal seeks to standardize existing practice and, "At the time of writing, MSVC accepts void main() without warnings, EDG accepts void main() with warnings, and GCC and Clang reject this declaration." If "void main()" is proposed as a new feature, what problem is it trying to solve?

Received on 2025-07-22 19:53:12