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
