https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81777
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WONTFIX --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Yes this is because this is not required to issue a diagnostic at compile time. Also there is no real way. -flto is able to diagnose this though due to having all the information while linking.