Patchwork [C++] Move decltype(nullptr) back to NULLPTR_TYPE tree code

login
register
mail settings
Submitter Richard Guenther
Date Oct. 14, 2010, 11:59 a.m.
Message ID <alpine.LNX.2.00.1010141355470.23074@zhemvz.fhfr.qr>
Download mbox | patch
Permalink /patch/67809/
State New
Headers show

Comments

Richard Guenther - Oct. 14, 2010, 11:59 a.m.
On Wed, 13 Oct 2010, Jason Merrill wrote:

> On 10/13/2010 11:05 AM, Richard Guenther wrote:
> > +     case NULLPTR_TYPE:
> > +       /* No Dwarf representation currently defined.  Fallthru.  */
> > +
> >        case LANG_TYPE:
> >          /* Just use DW_TAG_unspecified_type.  */
> 
> Well, the proposed representation is to use DW_TAG_unspecified_type, as I
> implemented for LANG_TYPE, so I'd leave out the new comment and just add the
> new case.

Ok.

> Otherwise Ok.

Testing revealed I need the following additional hunk, added as ovious,
committed after re-bootstrapping and testing on x86_64-linux.

Thanks,
Richard.

	* pt.c (tsubst): Handle NULLPTR_TYPE.

Patch

Index: gcc/cp/pt.c
===================================================================
--- gcc/cp/pt.c.orig	2010-10-14 10:33:07.000000000 +0200
+++ gcc/cp/pt.c	2010-10-14 11:08:36.000000000 +0200
@@ -10097,6 +10097,7 @@  tsubst (tree t, tree args, tsubst_flags_
     case COMPLEX_TYPE:
     case VECTOR_TYPE:
     case BOOLEAN_TYPE:
+    case NULLPTR_TYPE:
     case LANG_TYPE:
       return t;