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++ preview patch] PR 44277


On 10/31/2011 09:29 PM, Jason Merrill wrote:
On 10/31/2011 04:09 PM, Paolo Carlini wrote:
... so today I noticed the c_inhibit_evaluation_warnings use in
cp_convert_and_check and occurred to me that we could use the existing
mechanism for this warning too?

The below still passes checking and my small set of tests...

I notice that this patch only changes the C++ front end, and it seems like you already have special cases for pointers/pointers to members, so you might as well go ahead and use nullptr_node.
Right. Thus essentially a mix of the two recent tries, like the below, right? Patch becomes even simpler and more importantly we rely on c_inhibit_* only for c code proper.

If you think I'm on the right track, I will add the testcases, documentation, etc.

Is the name of the warning ok? It's a bit long...

Thanks,
Paolo.

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

Attachment: patch_44277_draft_4
Description: Text document


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