[Bug c++/70594] [6 Regression] -fcompare-debug failure
nathan at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Apr 8 21:07:00 GMT 2016
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?
More information about the Gcc-bugs
mailing list