https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121529
Patrick Palka <ppalka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2025-08-13 CC| |ppalka at gcc dot gnu.org Status|UNCONFIRMED |NEW Component|c++ |libstdc++ Ever confirmed|0 |1 Summary|std::valarray fails size |std::valarray lacks size |assertion when using |assertion when using |multiple chained operator+ |multiple chained operator+ |calls |calls --- Comment #1 from Patrick Palka <ppalka at gcc dot gnu.org> --- FWIW GCC 15 didn't add any new <valarray> assertions, we just enabled all libstdc++ assertions by default with -O0 in GCC 15. Older GCC behaves the same if passed -D_GLIBCXX_ASSERTIONS. That said, it would be nice to have a length assertion in the chained case too.