This is the mail archive of the gcc@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: __comp_ctor and std::ofstream default constructor


Brendon Costa wrote:

basic_ofstream::basic_ofstream(int __in_chrg, void* __vtt_parm)

Can someone please help me understand why this happens?

Well looking more in the source I have found that this happens when virtual inheritance is in play. It is used to determine which constructor will construct the single base object.


The other question however is still valid. If anyone knows a simple way to achieve this then I would love to hear it.


Also when given a FUNCTION_DECL node for a __comp_ctor () function of a class, how I can find the FUNCTION_DECL node that would be called by it in order to perform the initialisation of the class data?


Thanks, Brendon.


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