This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [C++0x] nullptr
- From: Magnus Fromreide <magfr at lysator dot liu dot se>
- To: Paolo Carlini <pcarlini at gmail dot com>
- Cc: Jonathan Wakely <jwakely dot gcc at gmail dot com>, libstdc++ <libstdc++ at gcc dot gnu dot org>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Jason Merrill <jason at redhat dot com>
- Date: Sat, 05 Jun 2010 01:32:55 +0200
- Subject: Re: [C++0x] nullptr
- References: <1268546192.2028.32.camel@sara.home> <4BA46E77.6080507@redhat.com> <1269813166.2249.8.camel@sara.home> <4BB12B74.80703@redhat.com> <4BDD0915.2020301@redhat.com> <1272842221.2000.26.camel@sara.home> <s2x4348dea51005021734p72dff67cxb3b0fc26b6484400@mail.gmail.com> <4BEBC0AB.1000307@oracle.com> <AANLkTikykY1CJmw3rUkXdjpc5Gm2NaCM0GHR_9Eg8AgN@mail.gmail.com> <4BED2842.8050702@oracle.com> <4C023C7A.6010002@oracle.com> <4C023EC0.9020000@gmail.com> <AANLkTimzhcVlFJC6ZsB8iZ_6FPRXhQOpnujMO4Gqk2l1@mail.gmail.com> <1275689625.2087.166.camel@sara> <01775942-0CD2-432A-B4E2-86FB4DEA1B31@oracle.com>
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