-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
json_ptr.hpp:514:102: internal compiler error: Segmentation fault #158
Comments
We'll have to look into whether we can get gcc 10 to work. Right now we're just supporting gcc 11 and beyond. Thanks for pointing this out. |
After looking more at the gcc 10 support for C++20 I just don't think we'll be able to support that compiler version. We're trying to embrace C++20 with Glaze and gcc 10 just lacks too many useful features from C++20. Sorry for this inconvenience. |
Very nice, and thanks a lot. But I already migrated to gcc-11 to enjoy more of c++20. :) |
Building with GCC 10.3 (-std=c++20) on Ubuntu 20.04 and cmake 3.22.0 I get the following issue during build:
/home/developer/workspace/test/glaze/release/_deps/glaze-src/include/glaze/json/json_ptr.hpp: In function ‘constexpr bool glz::valid()’:
/home/developer/workspace/test/glaze/release/_deps/glaze-src/include/glaze/json/json_ptr.hpp:514:102: internal compiler error: Segmentation fault
514 | using G = member_getter<V, glz::detail::string_literal_from_view<key_str.size()>(key_str)>;
| ^
0x7f275468208f ???
/build/glibc-SzIz7B/glibc-2.31/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x7f2754663082 __libc_start_main
../csu/libc-start.c:308
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
In the project I would like to use glaze I'm restricted to gcc 10.3.0 at this moment.
Is there a way to work-around this issue?
You should be able to reproduce this using the code snippet:
The text was updated successfully, but these errors were encountered: