[Bug c/122982] ICE in in gimplify_expr, at gimplify.cc:21136 when counted_by for pointer is added

qinzhao at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 4 21:41:39 GMT 2025


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

--- Comment #4 from qinzhao at gcc dot gnu.org ---
(In reply to Andrew Pinski from comment #3)
> c_maybe_const_expr
> should not make it to the gimplifier.
> 
> It should have been resolved before.
yes, I should call c_fully_fold on that expression before using it as the first
argument to the call to .ACCESS_WITH_SIZE.


More information about the Gcc-bugs mailing list