[C++] constexpr: request insert iff depth is ok
authorAlexandre Oliva <oliva@adacore.com>
Thu, 29 Dec 2022 17:32:59 +0000 (14:32 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Thu, 29 Dec 2022 17:39:47 +0000 (14:39 -0300)
commit6ec8079e0b7dc7c44a7001ffb20ca038362191d5
tree836013364cf807a42d7f33a5ad7857ea615a8628
parent06be65894f7f18058496aa0e55bb7ec5613cb2a3
[C++] constexpr: request insert iff depth is ok

cxx_eval_call_expression requests an INSERT even in cases when it
would later decide not to insert.  This could break double-hashing
chains.  Arrange for it to use NO_INSERT when the insertion would not
be completed.

for  gcc/cp/ChangeLog

* constexpr.cc (cxx_eval_call_expression): Do not request an
INSERT that would not be completed.
gcc/cp/constexpr.cc