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

--- Comment #12 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
(In reply to Patrick Palka from comment #9)

> The decls belonging to a copy of a function must have new UIDs though
> because their uids are used to track their mutable values (within the
> constexpr_ctx::values hash_map).  So if the decls of two copies of the same
> function didn't have different uids then e.g. recursive function calls
> wouldn't get evaluated properly.

One could probably add something like DECL_CONTEXT(decl) into the hash's eq
function?

Reply via email to