[Bug c++/105035] [11/12 Regression] tree check: expected field_decl, have identifier_node in operand_equal_p, at fold-const.c:3335 since r11-5181-g0862d007b564eca8
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 23 11:06:03 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105035
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at redhat dot com,
| |rguenth at gcc dot gnu.org
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
It looks like the C++ frontend builds COMPONENT_REF with IDENTIFIER_NODE
operand one and the middle-end is not expecting this. Maybe we call
operand_equal_p before layout is complete?
I suppose we could guard operand_equal_p for this case but then handing invalid
GENERIC to the middle-end is suspicious.
Jason?
More information about the Gcc-bugs
mailing list