https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85870
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |WAITING --- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> --- Can't reproduce with GCC 7.3.0 on x86_64: + gcc-7 -O2 -flto -c test_1.i -o test_1.o + gcc-7 -O2 -flto -c test_2.i -o test_2.o + gcc-7 test_1.o test_2.o /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/lib64/gcc/x86_64-suse-linux/7/../../../../lib64/crt1.o: in function `_start': /home/abuild/rpmbuild/BUILD/glibc-2.27/csu/../sysdeps/x86_64/start.S:104: undefined reference to `main' collect2: error: ld returned 1 exit status Richi how did you achieve to reproduce that?