https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105545
Ed Catmur <ed at catmur dot uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ed at catmur dot uk --- Comment #3 from Ed Catmur <ed at catmur dot uk> --- I don't think _GLIBCXX_ASSERTIONS is necessary; you just need -Werror=restrict and -O2 (not sure what exactly). https://godbolt.org/z/TvfYzbcf6