[Bug c++/125711] [14/15/16/17 Regression] internal compiler error: tree check: expected class 'expression', have 'declaration' (var_decl) in tree_operand_check, at tree.h:4349
iains at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jun 10 15:05:46 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125711
--- Comment #5 from Iain Sandoe <iains at gcc dot gnu.org> ---
(In reply to Drea Pinski from comment #4)
> (In reply to Iain Sandoe from comment #3)
> > hmm .. the reduced case involves neither coroutines nor contracts; I will
> > try to repo. locally and take an initial look.
>
> I was suspecting that patch because it touches the gimplifier.
> There is one change which looks suspect:
> - if (!gimple_seq_empty_p (n) && !gimple_seq_empty_p (e))
> + if (!gimple_seq_empty_p (n) || !gimple_seq_empty_p (e))
ack, that does look suspicious .. I need to reload state on what the change was
intended to achieve.
More information about the Gcc-bugs
mailing list