* 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
2 changed files with 7 additions and 2 deletions
|
@ -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>
|
||||
|
||||
* 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>
|
||||
factory(A1&& a1, A2&& a2)
|
||||
{
|
||||
return std::shared_ptr<T>(new T(std::forward<A1>(a1),
|
||||
std::forward<A2>(a2))); // { dg-error "rvalue" }
|
||||
return std::shared_ptr<T>(
|
||||
new T(std::forward<A1>(a1), // { dg-error "rvalue" }
|
||||
std::forward<A2>(a2)));
|
||||
}
|
||||
|
||||
struct A
|
||||
|
|
Loading…
Add table
Reference in a new issue