[Bug c++/90997] [9/10 Regression] ICE on a memset in a template in tsubst_copy_and_build, at cp/pt.c:18480

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Jan 26 05:51:00 GMT 2020


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

--- Comment #3 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:da11ffbba8741e085095f49037860de8e8701a1f

commit r10-6228-gda11ffbba8741e085095f49037860de8e8701a1f
Author: Jason Merrill <jason@redhat.com>
Date:   Sun Jan 26 00:25:19 2020 -0500

    c++: avoid ICE with __builtin_memset (PR90997).

    warn_for_memset calls fold_for_warn, which calls fold_non_dependent_expr,
so
    also calling instantiate_non_dependent_expr here is undesirable.

        PR c++/90997
        * semantics.c (finish_call_expr): Don't call
        instantiate_non_dependent_expr before warn_for_memset.


More information about the Gcc-bugs mailing list