* pt.c (unify): Handle NULLPTR_TYPE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182505
138bc75d-0d04-0410-961f-
82ee72b054a4
2011-12-19 Jason Merrill <jason@redhat.com>
+ PR c++/51530
+ * pt.c (unify): Handle NULLPTR_TYPE.
+
PR c++/51526
* semantics.c (build_data_member_initialization): Handle
delegating constructor.
case BOOLEAN_TYPE:
case ENUMERAL_TYPE:
case VOID_TYPE:
+ case NULLPTR_TYPE:
if (TREE_CODE (arg) != TREE_CODE (parm))
return unify_type_mismatch (explain_p, parm, arg);
+2011-12-19 Jason Merrill <jason@redhat.com>
+
+ PR c++/51530
+ * g++.dg/cpp0x/nullptr26.C: New.
+
2011-12-19 Richard Sandiford <rdsandiford@googlemail.com>
* gcc.target/mips/mult-1.c: Require -O2.
--- /dev/null
+// PR c++/51530
+// { dg-options -std=c++0x }
+
+template <class T, class U>
+void f(T, U);
+
+template <class T>
+void f(T, decltype(nullptr));
+
+int main()
+{
+ f(1, nullptr);
+}