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

Re: multithreaded EH is still broken on Linux/Alpha and other platforms


>>>>> Jason Merrill writes:

>>>>> H J Lu <hjl@lucon.org> writes:
>> The Linux/x86 EH bug has nothing to do with thread.

> No, it has to do with you forgetting to define the copy constructor.

You are right in that egcs did a copy using the copy constructor.
This behaviour is different from other compilers:

As Lu has pointed out, Sun's CC 4.2 does not invoke the copy constructor. 

DEC C++ v 6.0 does not invoke the copy constructor (but DEC C++ v 5.6 does).

g++ 2.7.2 invoke the copy constructor but miss out one call to the
destructor.

I do not know which is suppose to be the standard conforming behaviour.

Just another minor point that can catch the unawared I suppose..

Regards,

Sai-Lai Lo



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