[Bug c++/89612] [7/8/9 Regression] internal compiler error: in push_access_scope, at cp/pt.c:237

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 28 20:25:00 GMT 2019


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

--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu Mar 28 20:24:48 2019
New Revision: 270005

URL: https://gcc.gnu.org/viewcvs?rev=270005&root=gcc&view=rev
Log:
        PR c++/89612 - ICE with member friend template with noexcept.
        * pt.c (maybe_instantiate_noexcept): For function templates, use their
        template result (function decl).  Don't set up local specializations.
        Temporarily turn on processing_template_decl.  Update the template type
        too.

        * g++.dg/cpp0x/noexcept38.C: New test.
        * g++.dg/cpp0x/noexcept39.C: New test.
        * g++.dg/cpp1z/noexcept-type21.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/noexcept38.C
    trunk/gcc/testsuite/g++.dg/cpp0x/noexcept39.C
    trunk/gcc/testsuite/g++.dg/cpp1z/noexcept-type21.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list