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] PR 58888


Hi,

On 10/28/2013 07:05 PM, Jason Merrill wrote:
My question is, why do we need that whole block for massaging VAR_DECL initializers? That all ought to be handled properly by cp_finish_decl. Does removing everything after

else if (!VAR_P (value))
gcc_unreachable ();
work?
In fact, it works great, excellent. I only have to tweak a bit g++.dg/other/warning1.C, which, for some reason, used dg-warnings, whereas in fact we have been matching errors (we are removing the "field initializer is not constant" error and replacing it with "(1.0e+0f / 0.0f)â is not a constant expression" etc)

Tested x86_64-linux.

Thanks,
Paolo.

/////////////////////

Attachment: patch_58888_2
Description: Text document


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