Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 4 years ago

Language

C++

Compiler

gcc HEAD 12.0.0 20210513 (experimental)

Options
Don't Use Boost
Compiler Default
no pedantic
Raw compiler options
-std=c++20 -fmodules-ts test2.cc test1.cc prog.cc

Author

anonymous

almost 4 years ago

test1.cc
test2.cc

$ g++ prog.cc -std=c++20 -fmodules-ts test2.cc test1.cc prog.cc
In module imported at prog.cc:2:1:
test1: error: failed to read compiled module: No such file or directory
test1: note: compiled module file is 'gcm.cache/test1.gcm'
test1: note: imports must be built before being imported
test1: fatal error: returning to the gate for a mechanical issue
compilation terminated.
prog.cc: In function 'void g()':
prog.cc:5:5: error: 'A' has not been declared
    5 |     A::a;
      |     ^
Exit Code:
1