https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67739
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic, wrong-code Status|UNCONFIRMED |NEW Last reconfirmed| |2016-09-11 Component|c++ |middle-end Ever confirmed|0 |1 Severity|major |normal --- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Milan Durovic from comment #4) > But the core problem is still there: the compiler generates a call to a > method whose name clashes with a local variable and no indication of this > happening is given at all. Cgraph could figure this out slightly and rename sincosf variable to sincosf.0 but this would need to happen after each time an optimization that would optimize into a new function. But it might do the incorrect thing in some cases ....