c++: avoid ICE with __builtin_memset (PR90997).
authorJason Merrill <jason@redhat.com>
Sun, 26 Jan 2020 05:25:19 +0000 (00:25 -0500)
committerJason Merrill <jason@redhat.com>
Sun, 26 Jan 2020 05:49:24 +0000 (00:49 -0500)
commitda11ffbba8741e085095f49037860de8e8701a1f
tree5fb8b93bdc6dda01d87d73544b5e864e700cd60b
parentd0683c187f1806b887ff8b7e476edbde992310ef
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.
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/g++.dg/ext/builtin14.C [new file with mode: 0644]