[Bug pch/65550] [5 Regression] ICE (segfault) with pch

maltsevm at gmail dot com gcc-bugzilla@gcc.gnu.org
Sat Apr 4 08:26:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65550

--- Comment #5 from Mikhail Maltsev <maltsevm at gmail dot com> ---
Or even simpler:

#!/bin/bash
mkdir -p ./src
mkdir -p ./build/src/preproc.h.gch

touch ./src/preproc.h

cat << EOF >./src/include.h
#include "src/preproc.h"
/* line 1 */
/* line 2 */
EOF

cat << EOF >./src/source.cpp
#include "include.h"
/* a single line with at least 128 columns and one token */                    
                                                                          
token
EOF

cd ./build
cc1plus ../src/preproc.h --output-pch=src/preproc.h.gch/pch_file
cc1plus -I . ../src/source.cpp



More information about the Gcc-bugs mailing list