This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: __comp_ctor and std::ofstream default constructor
- From: Brendon Costa <bcosta at avdat dot com dot au>
- To: Brendon Costa <bcosta at avdat dot com dot au>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 20 Oct 2006 06:38:39 +0000
- Subject: Re: __comp_ctor and std::ofstream default constructor
- References: <45386324.4030203@avdat.com.au>
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.