This is the mail archive of the gcc-help@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]

Re: g++ compiler generated copy constructor


On 11 August 2014 23:41, navin p wrote:
> Hi,
>    I'm maintaining an old C++ library code (written in around 2002) ,
> I get segfaults in constructor. The default constructors are generated
> by the compiler. When i compile the program with
> fno-elide-constructors it works without any problem ie it runs fine. I
> want to see what is happening with the constructor and why it is
> segfaulting. It is probably the RVO kicking in and changing the
> reference counting the library implements.

What an implicitly-defined constructor does is entirely mechanical,
you shouldn't need to read it to know what it does.


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