summaryrefslogtreecommitdiff
path: root/gcc/cp/semantics.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2015-08-05 17:51:29 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2015-08-05 17:51:29 +0000
commit13c413d9982dbfa89d683543d017e59aff188e9d (patch)
treeb33563c16aa512d246a6a9ea38a0d146b779bc86 /gcc/cp/semantics.c
parent254d68a930fa4cd7a429910706454830d6b7ef07 (diff)
downloadgcc-13c413d9982dbfa89d683543d017e59aff188e9d.tar.gz
PR c++/65195
PR c++/66619 * semantics.c (finish_id_expression): Call convert_from_reference for variable template. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226641 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r--gcc/cp/semantics.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c
index 44f9f7acaa3..d42838e78cc 100644
--- a/gcc/cp/semantics.c
+++ b/gcc/cp/semantics.c
@@ -3564,6 +3564,7 @@ finish_id_expression (tree id_expression,
{
decl = finish_template_variable (decl);
mark_used (decl);
+ decl = convert_from_reference (decl);
}
else if (scope)
{