https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89212

--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Mon Feb 11 20:03:43 2019
New Revision: 268781

URL: https://gcc.gnu.org/viewcvs?rev=268781&root=gcc&view=rev
Log:
        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.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/nullptr40.C
    trunk/gcc/testsuite/g++.dg/cpp0x/nullptr41.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to