http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43437
Thorsten Glaser <tg at mirbsd dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tg at mirbsd dot org --- Comment #12 from Thorsten Glaser <tg at mirbsd dot org> 2011-12-18 22:00:28 UTC --- Indeed. Compiling the file (renamed to x.i) with • gcc -O2 -c x.i ⇒ fails with the same error • gcc -O2 -c -fPIC x.i ⇒ succeeds. Note that -O2 is needed, otherwise it won’t compile at all (apparently some bug when something is not inlined in the original source, didn’t investigate).