This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54026] [4.7/4.8 regression] template const struct with mutable members erroneously emitted to .rodata
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 19 Jul 2012 16:44:20 +0000
- Subject: [Bug c++/54026] [4.7/4.8 regression] template const struct with mutable members erroneously emitted to .rodata
- Auto-submitted: auto-generated
- References: <bug-54026-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54026
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-07-19 16:44:20 UTC ---
The problem is that for incomplete types TYPE_HAS_MUTABLE_P is never going to
be true, as finish_struct_1 hasn't been called yet, therefore not
check_bases_and_members and check_field_decls which sets CLASSTYPE_HAS_MUTABLE.