This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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++0x] nullptr


On Sat, 2010-06-05 at 00:51 +0200, Paolo Carlini wrote:
> Hi,
> 
> > It looks as if the nullptr code is buggy.
> >
> > With the attached patch it seems to work.
> 
> Added Jason in CC.

Thanks.

> If the patch is indeed correct - as far as I can  
> see, besides the testcases it's just a couple of one-liners

That's right - 2 one-liners.

> - the ChangeLog entries are missing...

For the one-liners:

Use null_ptr_cst_p instead of integer_zerop to check if an expression is
a null pointer constant.

For the tests:

Add tests for non-built-in nullptr_t variables.

/MF 


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