This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/78490] [c++17] libstdc++ has undefined behavior in operator= of propagate_const


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]