summaryrefslogtreecommitdiff
path: root/gcc/cp/call.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2016-07-24 02:25:36 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2016-07-24 02:25:36 +0000
commit4618a2af88bfd3e01ba89073ce54877fea38709a (patch)
tree66a9c3ba6536a6b5bf788a571643a96b39158be6 /gcc/cp/call.c
parented66687b04c038fe07225b4e85599dba76fa6e86 (diff)
downloadgcc-4618a2af88bfd3e01ba89073ce54877fea38709a.tar.gz
PR c++/71576 - bitfield and rvalue reference
* call.c (convert_like_real): Use lvalue_kind. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238683 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r--gcc/cp/call.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index 061e7084d37..2f373a37b98 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -6737,7 +6737,7 @@ convert_like_real (conversion *convs, tree expr, tree fn, int argnum,
for a non-reference copy-initialization (8.5). */
tree type = TREE_TYPE (ref_type);
- cp_lvalue_kind lvalue = real_lvalue_p (expr);
+ cp_lvalue_kind lvalue = lvalue_kind (expr);
gcc_assert (same_type_ignoring_top_level_qualifiers_p
(type, next_conversion (convs)->type));