__comp_ctor and std::ofstream default constructor
Brendon Costa
bcosta@avdat.com.au
Fri Oct 20 06:42:00 GMT 2006
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.
More information about the Gcc
mailing list