[RFC] Deprecate "implicit int" for main() in C++
Nathan Sidwell
nathan@acm.org
Wed Apr 25 17:50:00 GMT 2018
On 04/25/2018 12:45 PM, Jonathan Wakely wrote:
> @@ -15869,6 +15851,12 @@ finish_function (bool inline_p)
> Â Â Â {
> Â Â Â Â Â warning (OPT_Wreturn_type,
> Â Â Â Â Â Â Â Â Â Â Â Â Â "no return statement in function returning non-void");
> +Â Â Â Â Â if (DECL_NAME (fndecl) == assign_op_identifier)
IDENTIFIER_ASSIGN_OP_P (DECL_NAME (fndecl)), so += and friends are also
caught?
nathan
--
Nathan Sidwell
More information about the Gcc
mailing list