[Bug c++/100102] [9 Regression] ICE in tsubst, at cp/pt.c:15310

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jun 8 03:55:07 GMT 2021


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

--- Comment #26 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:

https://gcc.gnu.org/g:a1b3484a8e6c53c8084723e3f1738d402374198e

commit r12-1270-ga1b3484a8e6c53c8084723e3f1738d402374198e
Author: Jason Merrill <jason@redhat.com>
Date:   Mon May 31 12:56:34 2021 -0400

    c++: alias member template [PR100102]

    Patrick already fixed the primary cause of this bug.  But while I was
    looking at this testcase I noticed that with the qualified name k::o we
    ended up with a plain FUNCTION_DECL, whereas without the k:: we got a
    BASELINK.  There seems to be no good reason not to return the BASELINK
    in this case as well.

            PR c++/100102

    gcc/cp/ChangeLog:

            * init.c (build_offset_ref): Return the BASELINK for a static
            member function.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp0x/alias-decl-73.C: New test.


More information about the Gcc-bugs mailing list