https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116170
--- Comment #6 from Kewen Lin <linkw at gcc dot gnu.org> --- (In reply to Segher Boessenkool from comment #4) > Is that strong enough? A const_vector (or a const_anything) as lhs of a set > does not make sense at all. How did we even try this, is some more generic > thing broken? sorry, I just noticed your comments here, yes, a fix in LRA was committed. Per Richard's comments and suggestion, an improvement by dropping "+" on the pattern has been also posted at https://gcc.gnu.org/pipermail/gcc-patches/2024-August/660238.html.