PR tree-optimization/83239 - False positive from -Wstringop-overflow
authorMartin Sebor <msebor@redhat.com>
Sat, 16 Dec 2017 22:37:22 +0000 (22:37 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Sat, 16 Dec 2017 22:37:22 +0000 (15:37 -0700)
commitd43568222a4564e22a6ffd370481e11ba031b318
tree49759439d19f1c2f45fbb5f75e0ad9ff5e3712a4
parent1eaa31d84014c78a16409ef3c08e164dee78b56f
PR tree-optimization/83239 - False positive from -Wstringop-overflow

PR tree-optimization/83239 - False positive from -Wstringop-overflow
on simple std::vector code

libstdc++/CHangeLog:
* include/bits/vector.tcc (vector::_M_default_append): Assert
        invariant to generate better code.

gcc/testsuite/ChangeLog:
* g++.dg/pr83239.C: New test case.

From-SVN: r255753
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr83239.C [new file with mode: 0644]
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/vector.tcc