https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95558
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |4.7.1 Known to work| |4.5.3, 4.6.4 Target Milestone|--- |9.5 Summary|Invalid IPA optimizations |[9/10/11/12 Regression] |based on weak definition |Invalid IPA optimizations | |based on weak definition --- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note you need -fno-inline to produce the issue these days. Plus it is a regression from GCC 4.6.