Commands needed:
echo "" > empty.h
gcc empty.h -o testcase.h.gch
echo '#include "testcase.h"' > testcase.c
gcc -fcompare-debug -save-temps testcase.c

Output:
testcase.c:1:22: error: one or more PCH files were found, but they were invalid
testcase.c:1:22: error: use -Winvalid-pch for more information
testcase.c:1:22: fatal error: testcase.h: No such file or directory
compilation terminated.
gcc: error: during -fcompare-debug recompilation
gcc: internal compiler error: in main, at gcc.c:7175
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Tested revisions:
r163371 - crash


-- 
           Summary: ICE: in main, at gcc.c:7175 with -fcompare-debug -save-
                    temps and unusable PCH file
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zsojka at seznam dot cz


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45356

Reply via email to