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 trival constructor
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Aug 2006 17:52:59 -0000
- Subject: [Bug c++/4131] The C++ compiler don't place a const class object to ".rodata" section with non trival constructor
- References: <bug-4131-3378@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from pinskia at gcc dot gnu dot org 2006-08-10 17:52 -------
Here is a real reduced testcase:
struct f
{
f(int a) { t = a; }
int t;
}
const f(1);
-----
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Why the C++ compiler don't |The C++ compiler don't place
|place a const class object |a const class object to
|to ".rodata" section? |".rodata" section with non
| |trival constructor
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4131