[Bug c++/99999] segmentation fault when declaring concept in module
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=9 Patrick Palka changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill ||a/show_bug.cgi?id=112588 Resolution|--- |FIXED CC||ppalka at gcc dot gnu.org Target Milestone|--- |14.0 Status|UNCONFIRMED |RESOLVED --- Comment #2 from Patrick Palka --- Fixed for GCC 14 by r14-8196 for PR112588.
[Bug c++/99999] segmentation fault when declaring concept in module
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=9 Marcin Nowak changed: What|Removed |Added CC||jasio.lpn at gmail dot com --- Comment #1 from Marcin Nowak --- Hi I wanted to check some new stuff from C++20 so I've compiled GCC 11 form git and wrote some test app. GCC version: gcc version 11.0.1 20210407 (experimental) (GCC) This is the main.cpp file that I've created: #include #include import test; int main() { std::string str = "Hello"; std::cout << str << std::endl; return 0; } And this is the test.cpp: module; #include #include export module test; template concept IsStdString = std::is_same_v; Command line: c++ -std=c++20 -fmodules-ts test.cpp main.cpp Compiler doesn't throw any error but when I'm trying to exec app it gives me an error: [1]71397 segmentation fault (core dumped) ./a.out If I remove concept part from test.cpp or move it into main.cpp app is working fine. I think it's a bug but it's new stuff in language so maybe I don't understand something Best regards