https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212
--- Comment #190 from Kazumoto Kojima <kkojima at gcc dot gnu.org> --- Another two segfaults are observed when building libstdc++v3. Compiling Segfault in libsupc++/dyncast.cc tree-ssa-reassoc.cc src/c++11/locale-inst.cc tree-ssa-strlen.cc I have not looked into these in detail yet. Anyway, the target libgcc & libstdc++v3 can be built successfuly when the files gimple-fold.cc pointer-query.cc tree-ssa-sccvn.cc tree-ssa-alias.cc tree-ssa-reassoc.cc tree-ssa-strlen.cc were compiled with -O0 -mlra.