https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102762
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |9.4.0
Target Milestone|--- |10.4
Summary|ICE with -O2: Segmentation |[10/11/12 Regression] ICE
|fault, memcpy, copy_bb |with -O2: Segmentation
| |fault, memcpy, copy_bb
Status|UNCONFIRMED |NEW
Last reconfirmed| |2021-10-15
Ever confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed, this is invalid code since there is no varargs and foo is never
inlined.