https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61637

--- Comment #19 from Krishnamoorthy C <chandrakm at hotmail dot com> ---
(In reply to David Edelsohn from comment #17)
> Is the exception throw inside the constructor?
> 
> Are saying that the linking a file with a function defined with
> __attribute__ (constructor) causes the failure solely because the file is
> linked or are you saying that throwing an exception inside the function
> defined with __attribute__ (constructor) fails?
> 
> Throwing exceptions inside constructors is a known issue.

Hi Dave - 

Not solely by just linking a cpp file with __attribute__, but throwing
exceptions inside the constructor ( shared lib constructor ) is causing a core
dump. This same code had been run successfully on Red Hat Linux, HP UX and SUSE
and Oracle Linux, but on AIX this does not run.

Are you saying this is a known problem specific to AIX or all platforms ?

Thanks for all the help in advance,
Krishnamoorthy

Reply via email to