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