mirror of git://gcc.gnu.org/git/gcc.git
* testsuite/20_util/forward/1_neg.cc: Move dg-error to right line.
From-SVN: r238793
This commit is contained in:
parent
a01fc54920
commit
427f68c6c2
|
|
@ -1,3 +1,7 @@
|
||||||
|
2016-07-27 Jonathan Wakely <jwakely@redhat.com>
|
||||||
|
|
||||||
|
* testsuite/20_util/forward/1_neg.cc: Move dg-error to right line.
|
||||||
|
|
||||||
2016-07-25 Georeth Chow <georeth2010@gmail.com>
|
2016-07-25 Georeth Chow <georeth2010@gmail.com>
|
||||||
|
|
||||||
* include/ext/ropeimpl.h (rope<>::_S_dump(_RopeRep*, int)): Qualify
|
* include/ext/ropeimpl.h (rope<>::_S_dump(_RopeRep*, int)): Qualify
|
||||||
|
|
|
||||||
|
|
@ -27,8 +27,9 @@ template<class T, class A1, class A2>
|
||||||
std::shared_ptr<T>
|
std::shared_ptr<T>
|
||||||
factory(A1&& a1, A2&& a2)
|
factory(A1&& a1, A2&& a2)
|
||||||
{
|
{
|
||||||
return std::shared_ptr<T>(new T(std::forward<A1>(a1),
|
return std::shared_ptr<T>(
|
||||||
std::forward<A2>(a2))); // { dg-error "rvalue" }
|
new T(std::forward<A1>(a1), // { dg-error "rvalue" }
|
||||||
|
std::forward<A2>(a2)));
|
||||||
}
|
}
|
||||||
|
|
||||||
struct A
|
struct A
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue