https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119076
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|pch |c++
Status|UNCONFIRMED |WAITING
Blocks| |103524
Last reconfirmed| |2025-03-01
Summary|ICE with Segmentation fault |ICE with Segmentation fault
|if using PCH |with modules
Ever confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
-fmodules-ts causes the use of modules intead of PCH.
Can you include the preprocessed source of the following 2 invokations of gcc:
g++-15 -O0 -fmodules-ts './include/nlohmann/json.hpp' -std=c++20 -I'./include/'
g++-15 -v -save-temps -freport-bug -Winvalid-pch -O0 -fmodules-ts './main.cxx'
-std=c++20
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524
[Bug 103524] [meta-bug] modules issue