https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115944
Guinevere Larsen <blarsen at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #6 from Guinevere Larsen <blarsen at redhat dot com> --- This reproducer isn't mine, its from an (unrelated) GDB bug. I was testing different compilation configurations and found this, which I thought could be a gcc problem. I was writing a question about why it works with -fPIC when Jonathan beat me to it as well :) Thanks for the explanation, sorry for the noise.