From e55ffe1001a6ec3ac5f9c1964ea330d606eafa24 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Fri, 22 May 2015 13:22:19 +0000 Subject: [PATCH] fix to use rvalue where expected From-SVN: r223571 --- gcc/testsuite/g++.dg/cpp1y/pr60943.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 (); } -- 2.30.2