This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49673] [C++0x] const variables initialised with constexpr constructor placed in .data not .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, 8 Jul 2011 14:24:55 +0000
- Subject: [Bug c++/49673] [C++0x] const variables initialised with constexpr constructor placed in .data not .rodata
- Auto-submitted: auto-generated
- References: <bug-49673-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49673
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2011-07-08 14:24:17 UTC ---
Author: jason
Date: Fri Jul 8 14:24:14 2011
New Revision: 176045
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176045
Log:
PR c++/49673
gcc/c-family/
* c-common.c (c_apply_type_quals_to_decl): Don't check
TYPE_NEEDS_CONSTRUCTING.
gcc/cp/
* typeck.c (cp_apply_type_quals_to_decl): Don't check
TYPE_NEEDS_CONSTRUCTING.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-rom.C
Modified:
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-common.c
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog