fix to use rvalue where expected
authorNathan Sidwell <nathan@gcc.gnu.org>
Fri, 22 May 2015 13:22:19 +0000 (13:22 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 22 May 2015 13:22:19 +0000 (13:22 +0000)
From-SVN: r223571

gcc/testsuite/g++.dg/cpp1y/pr60943.C

index 43857af9a227a28c09672ab26482d30a4f55c223..f6d1f2502b3b83977bdda8aa2edf237570de928e 100644 (file)
@@ -10,7 +10,7 @@ void Foo (A &a)
   a.f();
 }
 
-void Bar (A &&a)
+void Bar ()
 {
-  a.f ();
+  A{}.f ();
 }