From: Nathan Sidwell Date: Fri, 22 May 2015 13:22:19 +0000 (+0000) Subject: fix to use rvalue where expected X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e55ffe1001a6ec3ac5f9c1964ea330d606eafa24;p=gcc.git fix to use rvalue where expected From-SVN: r223571 --- diff --git a/gcc/testsuite/g++.dg/cpp1y/pr60943.C b/gcc/testsuite/g++.dg/cpp1y/pr60943.C index 43857af9a22..f6d1f2502b3 100644 --- a/gcc/testsuite/g++.dg/cpp1y/pr60943.C +++ b/gcc/testsuite/g++.dg/cpp1y/pr60943.C @@ -10,7 +10,7 @@ void Foo (A &a) a.f(); } -void Bar (A &&a) +void Bar () { - a.f (); + A{}.f (); }