https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70035
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Bernd Edlinger from comment #9) > (In reply to Jakub Jelinek from comment #8) > > Fixed for g++ 6+ so far. > > no. this creates a new problem. > I see now crashes in valid code that uses the std::stringstream > when -fsanitize=undefined is used. > Unfortunately I was not able to reduce the test case. > > But what is wrong can be seen with this simple test case: That is already tracked in PR70147.