https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86153
Bug ID: 86153 Summary: [9 regression] test case g++.dg/pr83239.C fails starting with r261585 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- make -k check-gcc RUNTESTFLAGS=dg.exp=g++.dg/pr83239.C . . . # of expected passes 7 # of unexpected failures 2 FAIL: g++.dg/pr83239.C -std=gnu++11 scan-tree-dump-not optimized "_ZNSt6vectorIiSaIiEE17_M_default_appendEm" FAIL: g++.dg/pr83239.C -std=gnu++14 scan-tree-dump-not optimized "_ZNSt6vectorIiSaIiEE17_M_default_appendEm" The revision changed the trees a bit and those checks now fail. If this is working as expected the test cases need to be updated. r261585 | redi | 2018-06-14 04:26:51 -0500 (Thu, 14 Jun 2018) | 14 lines PR libstdc++/83982 fix exception-safety guarantee of std::vector::resize Construct new elements before moving existing ones, so that if a default constructor throws, the existing elements are not left in a moved-from state. 2018-06-14 Daniel Trebbien <dtrebb...@gmail.com> Jonathan Wakely <jwak...@redhat.com> PR libstdc++/83982 * include/bits/vector.tcc (vector::_M_default_append(size_type)): Default-construct new elements before moving existing ones. * testsuite/23_containers/vector/capacity/resize/strong_guarantee.cc: New.