[Bug c++/56243] [4.8 regression] ICE in tree check: expected field_decl, have identifier_node in fixed_type_or_null, at cp/class.c:6645

fabien at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Feb 25 21:05:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56243

--- Comment #8 from fabien at gcc dot gnu.org 2013-02-25 21:04:59 UTC ---
(In reply to comment #6)
[...]
> 2) check that the first operand of a COMPONENT_REF is actually a FIELD_DECL
> before calling DECL_FIELD_IS_BASE on it.

As a consequency, while processing fold_non_dependent_expr_sfinae,
fixed_type_or_null returns NULL_TREE on 'x.value' the and build_vtbl_ref_1 has
not chance to call unshare_expr. Jason, is that a big deal ?



More information about the Gcc-bugs mailing list