PR c++/89212 - ICE converting nullptr to pointer-to-member-function.
authorMarek Polacek <polacek@redhat.com>
Mon, 11 Feb 2019 20:03:43 +0000 (20:03 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 11 Feb 2019 20:03:43 +0000 (20:03 +0000)
commitab97c3cdaf837637722237a4d1c33ddfdf6f7ee7
treee4dc6f525b2c00aacd8bb33d3a9506367f841b92
parent75c5639de1dba21290c3a88c440963c3c14fa827
PR c++/89212 - ICE converting nullptr to pointer-to-member-function.

* pt.c (tsubst_copy_and_build) <case CONSTRUCTOR>: Return early for
null member pointer value.

* g++.dg/cpp0x/nullptr40.C: New test.
* g++.dg/cpp0x/nullptr41.C: New test.

From-SVN: r268781
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/nullptr40.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/nullptr41.C [new file with mode: 0644]