Latest master gcc 13 compilation problem in mpfr-150 mode
When building latest master on debian servers we encounter a gcc 13 compiler segmentation fault during the build of mpfr-150 mode. 1, 2. It seems like a compiler problem and we should report it to gcc developers. Especially because the compiler crash emits this message [2]:
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-13/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccu54d5m.out file, please attach this to your bugreport.
=== BEGIN GCC DUMP ===
And next follows the full preprocessed source of file pkg/dem/ConcretePM.cpp, which looks rather innocent in terms of code complexity.
The problematic line is here:
if (math::abs(f) < maxError) return ret;
After commenting out this line the build does not fail.
It looks like the problem is in "return value". Because simplifying the code to this expression does not solve the problem. It still fails:
return ret;