aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorPaolo Carlini <paolo.carlini@oracle.com>2013-05-06 17:02:11 +0000
committerPaolo Carlini <paolo.carlini@oracle.com>2013-05-06 17:02:11 +0000
commit43ea6fe50be61edb1fef2d727e28e5696fa2112a (patch)
tree5241535bcb83c0b1cd37573eeefda729ab9cbf42 /gcc/cp
parent65c474f74c07f8b5e85ff24c2f3b541ddcc72323 (diff)
/cp
2013-05-06 Paolo Carlini <paolo.carlini@oracle.com> PR c++/57183 * decl.c (cp_finish_decl): After do_auto_deduction copy the qualifers with cp_apply_type_quals_to_decl. /testsuite 2013-05-06 Paolo Carlini <paolo.carlini@oracle.com> PR c++/57183 * g++.dg/cpp0x/auto38.C: New. git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@198637 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/decl.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index ffc5add4e43..5fa5e262be5 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2013-05-06 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/57183
+ * g++.dg/cpp0x/auto38.C: New.
+
2013-05-01 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/57092
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 1c0bc15ecd0..95937fe53aa 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -6147,6 +6147,7 @@ cp_finish_decl (tree decl, tree init, bool init_const_expr_p,
auto_node);
if (type == error_mark_node)
return;
+ cp_apply_type_quals_to_decl (cp_type_quals (type), decl);
}
if (!ensure_literal_type_for_constexpr_object (decl))