re PR c++/21454 (const array doesn't live in the rodata section in C++)
authorJakub Jelinek <jakub@redhat.com>
Tue, 17 May 2005 06:51:48 +0000 (08:51 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 17 May 2005 06:51:48 +0000 (08:51 +0200)
commitf23b8501183a7c4645e59d5d6ae9e0e1c0d925d5
treecb6a423cab6f20bd29a10111bcc2caa8bdbdb13b
parent7cbd12b88f5749676e888502453056fcc48cd61e
re PR c++/21454 (const array doesn't live in the rodata section in C++)

PR c++/21454
* decl.c (maybe_deduce_size_from_array_init): Call
cp_apply_type_quals_to_decl after completing array type.

* g++.dg/opt/const4.C: New test.

From-SVN: r99817
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/const4.C [new file with mode: 0644]