[C++0x] nullptr

Magnus Fromreide magfr@lysator.liu.se
Sun May 2 23:17:00 GMT 2010


(libstdc++-folks, there is a library patch in here that I would like to
get reviewed if possible)

On Sun, 2010-05-02 at 01:09 -0400, Jason Merrill wrote:
> On 03/29/2010 06:36 PM, Jason Merrill wrote:
> > On 03/28/2010 05:52 PM, Magnus Fromreide wrote:
> >> + else if (null_ptr_cst_p (op0) && null_ptr_cst_p (op1))
> >> + result_type = TREE_TYPE (nullptr_node);
> >
> > It seems like this ought to make sure that one of the operands is
> > non-integral.
> >
> >> + add_name_attribute(type_die, "decltype(nullptr)");
> >
> > Missing space.
> >
> > Other than that, just need to fix the other debugging backends to treat
> > NULLPTR_TYPE like integer_type_node and the compiler/libiberty changes
> > will be ready for 4.6.
> 
> Are you still working on this,

Very slowly. I found another bug in my handling of variadic arguments so
I added testcase nullptr22 and some small changes to cp/call.c for that
as well as the formatting fixes.

>  or would you like me to make the necessary changes to the debugging backends?

Yes, please.

/MF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc.diff
Type: text/x-patch
Size: 26260 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20100502/4e71ec97/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libiberty.diff
Type: text/x-patch
Size: 1229 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20100502/4e71ec97/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libstdc++-v3.diff
Type: text/x-patch
Size: 7869 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20100502/4e71ec97/attachment-0002.bin>


More information about the Libstdc++ mailing list