This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/4131] The C++ compiler don't place a const class object to ".rodata" section with non trivial constructor
- From: "thiago at kde dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 8 Jul 2011 08:06:26 +0000
- Subject: [Bug c++/4131] The C++ compiler don't place a const class object to ".rodata" section with non trivial constructor
- Auto-submitted: auto-generated
- References: <bug-4131-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4131
Thiago Macieira <thiago at kde dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |thiago at kde dot org
--- Comment #26 from Thiago Macieira <thiago at kde dot org> 2011-07-08 08:03:50 UTC ---
Using GCC 4.6, which does support constexpr in C++0x mode, it turns out that
the compiler does place initialised variables in the .data section. However,
const variables are still in .data, not in .rodata.
I don't think they are the same issues, so I reported Bug 49673.