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 trival constructor



------- 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


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