[C++ preview patch] PR 44277

Paolo Carlini paolo.carlini@oracle.com
Mon Oct 31 21:28:00 GMT 2011


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.

////////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_44277_draft_4
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111031/adfe5725/attachment.ksh>


More information about the Gcc-patches mailing list