This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/54026] [4.7/4.8 regression] template const struct with mutable members erroneously emitted to .rodata


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]