https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105438
--- Comment #11 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Bernie Innocenti from comment #10) > Still present on GCC 12.2. > > Could someone look into it please, or point me at the point in ipa-icf.cc > where the array-bounds analysis information should have been updated after > merging the template instantiations? Well, you will need to modify all parameters and local variables at the end of sem_function::merge function.