https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52159
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |trippels at gcc dot gnu.org --- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- (In reply to Steffen Hau from comment #3) > > The same happens with LD BFD. Only workaround is to disable LTO. GCC 4.9.2 > doesn't show this error and compiles the code. I was able to break down the > Object List to three files which reproduce the error reliably. I compiled > the files with the "--save-temps" switch, but I'm not able, to reproduce the > error with the resulting .i files because of other compiler errors like > "'abc' does not name a type" or "error: 'xyz' was not declared in this > scope". This happens because you use gcc for compiling and g++ for linking in your build script.