This is the mail archive of the gcc-patches@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: C++ PATCH to allow &main w/o -pedantic


Manuel López-Ibáñez wrote:
The original code was just:

19907   mmitchel       else if (pedantic && DECL_MAIN_P (arg))
133519    dgregor         {
133519    dgregor           /* ARM $3.4 */
133519    dgregor           if (complain & tf_error)
133519    dgregor             pedwarn ("ISO C++ forbids taking address
of function %<::main%>");
133519    dgregor           else
133519    dgregor             return error_mark_node;
133519    dgregor         }

So reverting back to this should be enough

Yes, I started with that, but I think what I applied is more correct.


Jason


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