This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug pch/26660] New: PCH vs -save-temps, ICE while GCing
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Mar 2006 00:48:10 -0000
- Subject: [Bug pch/26660] New: PCH vs -save-temps, ICE while GCing
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
create an empty file called t.hh.
create a file called t1.cc with:
#include "t.hh"
extern __inline__ int
stat (__const char *__path, struct stat *__statbuf) throw ()
{
--------------
compile the PCH like:
g++ t.hh
and the source file with:
g++ t1.cc -save-temps --param ggc-min-expand=0 --param ggc-min-heapsize=0
And see the following ICE:
t1.cc: In function ?int stat(const char*, stat*)?:
t1.cc:4: error: expected `}' at end of input
t1.cc: At global scope:
t1.cc:4: 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.
--
Summary: PCH vs -save-temps, ICE while GCing
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code, GC
Severity: normal
Priority: P3
Component: pch
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26660