https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119850
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|UNCONFIRMED |RESOLVED --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Dup. The problem is the warning does not get passed a location so it warns at the current_location which happens to be at the end of the function that is being compiled. *** This bug has been marked as a duplicate of bug 116356 ***