[Bug libstdc++/78490] [c++17] libstdc++ has undefined behavior in operator= of propagate_const
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 23 15:28:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78490
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Nov 23 15:22:35 2016
New Revision: 242762
URL: https://gcc.gnu.org/viewcvs?rev=242762&root=gcc&view=rev
Log:
PR78490 add missing returns to propagate_const
2016-11-23 Felix Morgner <felix.morgner@gmail.com>
Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/78490
* include/experimental/propagate_const (propagate_const::operator=):
Add missing return statements.
* testsuite/experimental/propagate_const/assignment/move_neg.cc:
Adjust dg-error line numbers.
* testsuite/experimental/propagate_const/requirements2.cc: Likewise.
Modified:
branches/gcc-6-branch/libstdc++-v3/ChangeLog
branches/gcc-6-branch/libstdc++-v3/include/experimental/propagate_const
branches/gcc-6-branch/libstdc++-v3/testsuite/experimental/propagate_const/assignment/move_neg.cc
branches/gcc-6-branch/libstdc++-v3/testsuite/experimental/propagate_const/requirements2.cc
More information about the Gcc-bugs
mailing list