diff options
author | Nathan Sidwell <nathan@gcc.gnu.org> | 2015-05-22 13:22:19 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2015-05-22 13:22:19 +0000 |
commit | e55ffe1001a6ec3ac5f9c1964ea330d606eafa24 (patch) | |
tree | 151e14827dd049b5fed47fb90a83703001461521 /gcc | |
parent | c42e1b178c67f2f1801b07a357a3b84ba565645e (diff) | |
download | gcc-e55ffe1001a6ec3ac5f9c1964ea330d606eafa24.zip gcc-e55ffe1001a6ec3ac5f9c1964ea330d606eafa24.tar.gz gcc-e55ffe1001a6ec3ac5f9c1964ea330d606eafa24.tar.bz2 |
fix to use rvalue where expected
From-SVN: r223571
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp1y/pr60943.C | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/g++.dg/cpp1y/pr60943.C b/gcc/testsuite/g++.dg/cpp1y/pr60943.C index 43857af..f6d1f25 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 (); } |