https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66705
--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- trippels@gcc75 ~ % cat tramp3d-v4.ii class A { public: A(); }; int a = 0; void foo() { a = 0; A b; for (; a;) ; } trippels@gcc75 ~ % g++ -r -nostdlib -O2 -flto -flto-partition=max -fipa-pta tramp3d-v4.ii lto1: fatal error: /home/trippels/tmp/cccC3PXI.ltrans0.o: section a is missing compilation terminated.