[Bug c++/103256] New: Internal compiler error after using iostream and filesystem as modules
hrominium at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Nov 15 18:02:43 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103256
Bug ID: 103256
Summary: Internal compiler error after using iostream and
filesystem as modules
Product: gcc
Version: 11.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: hrominium at gmail dot com
Target Milestone: ---
The compiler crashes with "inernal compiler error" while compiling the
following program:
```
import <iostream>;
import <filesystem>;
namespace fs = std::filesystem;
int main(int argc, char* argv[]){
fs::path input = "./";
std::cout << input;
return 0;
}
```
Compiled with:
g++ -c -std=c++20 -fmodules-ts -x c++-system-header filesystem iostream
g++ -std=c++20 -fmodules-ts -o test test.cpp
GCC versions:
11.1 (archlinux)
11.2 (selfcompiled from gcc's git repo)
More information about the Gcc-bugs
mailing list