re PR c++/61753 (poor diagnostic for constructor definition that starts with 'const')
commit6853b04cdd6269c596bf4dd24b41eee2170caef3
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 1 Sep 2015 08:39:47 +0000 (1 08:39 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 1 Sep 2015 08:39:47 +0000 (1 08:39 +0000)
treefe4cdc38ad1d9ae22dbdec61b95b211090f74d89
parente071af96da90ec5e2d224cdd9522b428b21f7d2c
re PR c++/61753 (poor diagnostic for constructor definition that starts with 'const')

/cp
2015-09-01  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/61753
* decl.c (smallest_type_quals_location): New.
(check_special_function_return_type): Use the latter; add int and
const location_t* parameters.
(grokdeclarator): Adjust check_special_function_return_type call.

/testsuite
2015-09-01  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/61753
* g++.dg/other/pr61753.C: New.

From-SVN: r227361
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/pr61753.C [new file with mode: 0644]