https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83860
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Known to work| |5.4.0 Keywords| |wrong-code Last reconfirmed| |2018-01-16 Ever confirmed|0 |1 Summary|valarray replacement type |[6/7/8 Regression] valarray |breaks with auto and more |replacement type breaks |than one operation |with auto and more than one | |operation Target Milestone|--- |7.3 Known to fail| |6.4.1, 7.2.1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed. Works with GCC 5, requires -O1+ to segfault. Doesn't segfault when using clang++. #include <valarray> int main() { std::valarray<int> va(16), vb(16), vc(16); auto sum = va + vb + vc; std::valarray<int> vsum = sum; }