This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Deprecate "implicit int" for main() in C++


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]