[Bug pch/15007] New: crash when including precompiled header with -include
bryner at brianryner dot com
gcc-bugzilla@gcc.gnu.org
Sun Apr 18 21:23:00 GMT 2004
Using a trunk gcc build pulled today, I get a crash if I include a precompiled
header with -include. For example,
pchtest.h:
void foo (void);
pchtest.c:
<empty>
gcc -c -o pchtest.h.gch pchtest.h
gcc -c -o pchtest.o pchtest.c -include -pchtest.h
pchtest.c:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
cc1 backtrace:
#0 0x0806a580 in c_write_global_declarations () at ../../gcc/gcc/c-decl.c:6629
#1 0x082e28c4 in toplev_main (argc=0, argv=0x0) at ../../gcc/gcc/toplev.c:1608
#2 0x080a8d9e in main (argc=0, argv=0x0) at ../../gcc/gcc/main.c:35
--
Summary: crash when including precompiled header with -include
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: pch
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bryner at brianryner dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15007
More information about the Gcc-bugs
mailing list