+2016-11-23 Felix Morgner <felix.morgner@gmail.com>
+ Jonathan Wakely <jwakely@redhat.com>
+
+ PR libstdc++/78494
+ * 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.
+
2016-11-22 Uros Bizjak <ubizjak@gmail.com>
* testsuite/Makefile.am
constexpr propagate_const& operator=(propagate_const<_Up>&& __pu)
{
_M_t = std::move(get_underlying(__pu));
+ return *this;
}
template <typename _Up, typename =
constexpr propagate_const& operator=(_Up&& __u)
{
_M_t = std::forward<_Up>(__u);
+ return *this;
}
// [propagate_const.const_observers], const observers
using std::experimental::propagate_const;
using std::unique_ptr;
-// { dg-error "no type" "" { target *-*-* } 161 }
+// { dg-error "no type" "" { target *-*-* } 162 }
int main()
{
// { dg-error "requires a class or a pointer to an object type" "" { target *-*-* } 107 }
// { dg-error "not a pointer-to-object type" "" { target *-*-* } 68 }
-// { dg-error "forming pointer to reference type" "" { target *-*-* } 187 }
-// { dg-error "forming pointer to reference type" "" { target *-*-* } 213 }
+// { dg-error "forming pointer to reference type" "" { target *-*-* } 189 }
+// { dg-error "forming pointer to reference type" "" { target *-*-* } 215 }
propagate_const<void*> test1;