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: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 20 Jul 2012 06:29:37 +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 #7 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-20 06:29:37 UTC ---
Author: jason
Date: Fri Jul 20 06:29:33 2012
New Revision: 189702
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=189702
Log:
PR c++/54026
* typeck.c (cp_apply_type_quals_to_decl): Check COMPLETE_TYPE_P.
Added:
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/init/mutable1.C
Modified:
branches/gcc-4_7-branch/gcc/cp/ChangeLog
branches/gcc-4_7-branch/gcc/cp/typeck.c
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog