https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94297
Bug ID: 94297 Summary: std::replace internal compiler error Product: gcc Version: 8.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jens.seifert at de dot ibm.com Target Milestone: --- #include <algorithm> #include <string> void patch(std::string& s) { std::replace(s.begin(),s.end(),'.','-'); } gcc replace.C In file included from /opt/rh/devtoolset-8/root/usr/include/c++/8/bits/uniform_int_dist.h:35, from /opt/rh/devtoolset-8/root/usr/include/c++/8/bits/stl_algo.h:66, from /opt/rh/devtoolset-8/root/usr/include/c++/8/algorithm:62, from replace.C:1: /opt/rh/devtoolset-8/root/usr/include/c++/8/limits:1677:7: internal compiler error: Segmentation fault max() _GLIBCXX_USE_NOEXCEPT { return __DBL_MAX__; } ^~~ Please submit a full bug report, with preprocessed source if appropriate. See <http://bugzilla.redhat.com/bugzilla> for instructions. Preprocessed source stored into /tmp/ccFTVYLT.out file, please attach this to your bugreport.