Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

gcc HEAD 16.0.0 20250729 (experimental)

Options
Warnings
Don't Use Boost
C++2b(GNU)
no pedantic
Raw compiler options
-fmodules-ts foo.cc main.cc

foo.cc
main.cc
foo.h

$ g++ prog.cc -Wall -Wextra -std=gnu++2b -fmodules-ts foo.cc main.cc
In module imported at main.cc:1:1:
foo: error: failed to read compiled module: Bad file data
foo: note: compiled module file is 'gcm.cache/foo.gcm'
foo: fatal error: returning to the gate for a mechanical issue
compilation terminated.
Exit Code:
1