[Bug ipa/105438] [11/12/13 Regression] Incorrect array-bounds warning with array size carried over from a previous template instantiation

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon May 2 06:57:49 GMT 2022


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |11.4
            Summary|Incorrect array-bounds      |[11/12/13 Regression]
                   |warning with array size     |Incorrect array-bounds
                   |carried over from a         |warning with array size
                   |previous template           |carried over from a
                   |instantiation               |previous template
                   |                            |instantiation

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #5)
> It's IPA ICF that merges the two functions.  We then end up inlining but not
> using the original function body but the merged one.

I wonder if we could get wrong code because of that ...


More information about the Gcc-bugs mailing list