re PR c++/57183 ([C++11] auto and -Wunused-variable)
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 6 May 2013 16:40:24 +0000 (16:40 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 6 May 2013 16:40:24 +0000 (16:40 +0000)
commit6555abe0ef5f9e917f99874c37adcb9063873ca6
treeb49db583b9bec036fd781f2a8168ce2668bd4ac6
parent0b953becc031a007bdb5d9069f206dde20c01a8f
re PR c++/57183 ([C++11] auto and -Wunused-variable)

/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.

From-SVN: r198636
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/auto38.C [new file with mode: 0644]