https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119608
Bug ID: 119608
Summary: ICE compiling module interface including boost.json in
GMF and exporting one entity
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: cjangus at gmail dot com
Target Milestone: ---
Created attachment 60972
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60972&action=edit
Archive containing preprocessed module interface.
Single file preprocessed repro attached.
The original source code is just:
---
module;
#include <boost/json.hpp>
export module repro;
export namespace boost::json
{
using boost::json::visit;
}
---
but with a minimally modified boost to work around TU exposure issues in
boost.system.
Command line:
g++ -fPIC -Og -g -Wall -fmodules -std=c++2b -finput-charset=UTF-8 -o
out/boost_json_repro2.a.gcm.o -c -x c++ -fpreprocessed -fdirectives-only
boost_json_repro2.a.gcm.ii
Output:
boost_json_repro2.a.gcm.ii:215201:8: internal compiler error: in
write_location, at cp/module.cc:17560
215201 | export module repro;
System/version:
Target: x86_64-pc-linux-gnu
Configured with: ../configure --prefix=/opt/gcc-latest --enable-languages=c,c++
--enable-libstdcxx-debug --enable-libstdcxx-backtrace --disable-bootstrap
--disable-multilib --disable-libvtv --disable-libssp --disable-libffi
--with-system-zlib --without-isl --with-arch_64=x86-64-v2
--with-bugurl=https://gcc.gnu.org/bugzilla
gcc version 15.0.1 20250330 (experimental) (GCC)