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;
 
