re PR c++/20073 (ICE initializing const array)
PR c++/20073 * decl.c (start_decl_1): Don't clear TREE_READONLY. (cp_finish_decl): Likewise. (complete_vars): Call cp_apply_type_quals_to_decl. * typeck.c (cp_apply_type_quals): Avoid setting TREE_READONLY in cases where that's not valid. PR c++/20073 * g++.dg/init/const1.C: New test. From-SVN: r95441
Showing
gcc/testsuite/g++.dg/init/const1.C
0 → 100644
Please
register
or
sign in
to comment