On 25/04/18 13:13 -0400, Nathan Sidwell wrote:
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?

Thanks. I've included that in my patch and attached it to PR 85523.


Reply via email to