[Bug pch/106799] `forming offset [32, 36] is out of the bounds` error with precompiled headers

michal at sawicz dot net gcc-bugzilla@gcc.gnu.org
Thu Sep 1 09:57:41 GMT 2022


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

--- Comment #2 from michal at sawicz dot net ---
@Richard correct, if you skip the precompilation, it compiles fine:

```
$ rm cmake_pch.hxx.gch
$ /usr/bin/g++-12 -I/usr/src/googletest/googlemock/include -O2 -std=c++20
-include cmake_pch.hxx -c tmp.cpp
$
```


More information about the Gcc-bugs mailing list