[Bug c++/94027] [10 Regression] ice in comptypes, at cp/typeck.c:1489 since r10-6907

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 11 12:07:54 GMT 2020


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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marxin at gcc dot gnu.org

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
commit r10-7074-g191bcd0f30dd37dec773efb0125afdcae9bd90ef
Author: Nathan Sidwell <nathan@acm.org>
Date:   Fri Mar 6 10:51:26 2020 -0800

    Fix mangling ICE [PR94027]

            PR c++/94027
            * mangle.c (find_substitution): Don't call same_type_p on template
            args that cannot match.

    Now same_type_p rejects argument packs, we need to be more careful
    calling it with template argument vector contents.

    The mangler needs to do some comparisons to find the special
    substitutions.  While that code looks a little ugly, this seems the
    smallest fix.


More information about the Gcc-bugs mailing list