https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85564
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- Yes, of course -static changes the type, because it creates a static executable not a dynamically-linked one. The behaviour changed when Bug 81523 was fixed, so is intentional and not a bug. *** This bug has been marked as a duplicate of bug 81523 ***