This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31785] RFE: Possible to avoid emitting ctor sections for simple constructors of static objects ?
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jun 2007 21:51:28 -0000
- Subject: [Bug c++/31785] RFE: Possible to avoid emitting ctor sections for simple constructors of static objects ?
- References: <bug-31785-8961@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pluto at agmk dot net 2007-06-15 21:51 -------
(In reply to comment #1)
> This is not a trivial constructor (or at least what the standard defines as
> trivial :) ).
could you explain this?
as far i can see the MyOtherStruct hasn't virtual functions/base
and its data member has a trivial ctor, so MyOtherStruct() is a trivial ctor.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31785