cpp_box
cpp_box copied to clipboard
Compilation causes ICE on gcc 8.1.0
internal compiler error: in force_type_die, at dwarf2out.c:25955
for (int i = 0; i < status.opsPerFrame && status.sys->operations_remaining(); ++i) { status.sys->next_operation(); }
g++ version: g++ (Ubuntu 8.1.0-5ubuntu1~16.04) 8.1.0
I'm currently using 8.2.1 with no problem. To be fair I'm pushing the limits of what is possible with gcc/clang right now, requiring very good support for C++17.
That's a really surprising place (to me) to see an ICE. Can you try both Debug and Release builds and see if there's any difference?
What is an ICE?
"Internal Compiler Error" it basically means there's a bug in the compiler, not in the C++ code. If it were an error in the C++ code then we should have gotten an error that says something like "on line 5 you are missing a ;
"
Thanks for the explanation.