http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50279
--- Comment #9 from Peter Foley <jpfoley2 at verizon dot net> 2011-10-10 20:34:01 UTC --- (In reply to comment #8) > (In reply to comment #7) > > I've attached a reduced testcase that reproduces the ICE with the > > commandline > > g++ -nostdlib -flto -g test.i > > This test case doesn't trigger the ICE on x86_64-apple-darwin11... > > howarth% g++-fsf-4.7 -nostdlib -flto -g -c test.ii > howarth% > > Note on darwin '-c' is required, else the test case fails with... > > howarth% g++-fsf-4.7 -nostdlib -flto -g test.ii > ld: warning: symbol dyld_stub_binder not found, normally in libSystem.dylib > ld: entry point (start) undefined. Usually in crt1.o for architecture x86_64 > collect2: error: ld returned 1 exit status -c prevents the test case from triggering the ICE on x86_64-pc-linux-gnu for me as well. Try removing -nostdlib from the commandline.