When feeding a preprocessed input file consisting of only a newline to gcc, it gets a segmentation fault: snaga:tmp> rm -f test.i snaga:tmp> echo > test.i snaga:tmp> gcc test.i test.i:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Confirmed, only happens in 3.4.x.
Obvious patch submitted.
Fixed.
Subject: Bug 20239 CVSROOT: /cvs/gcc Module name: gcc Branch: gcc-3_4-branch Changes by: rguenth@gcc.gnu.org 2005-09-09 13:37:07 Modified files: gcc : ChangeLog cppinit.c Log message: 2005-09-09 Richard Guenther <rguenther@suse.de> PR c/20239 * cppinit.c (cpp_read_main_file): Avoid segfaulting on NULL pfile->map. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.916&r2=2.2326.2.917 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cppinit.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.297.6.6&r2=1.297.6.7
*** Bug 25726 has been marked as a duplicate of this bug. ***