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++/4131] The C++ compiler don't place a const class object to ".rodata" section with non trivial constructor


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.


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