other/10799: Constructors of static classes are not called

marwijn.hessel@ict.nl marwijn.hessel@ict.nl
Thu May 15 13:06:00 GMT 2003


>Number:         10799
>Category:       other
>Synopsis:       Constructors of static classes are not called
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 15 11:26:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     M.W. Hessel
>Release:        GCC v3.2.3 powerpc-eabi cross compiler
>Organization:
>Environment:
GCC v3.2.3 powerpc-eabi cross compiler
>Description:
Before function 'main' is call, all constructors of static classes should be called.
Somehow, this is not the case with all GCC v3.x versions.
>How-To-Repeat:

>Fix:
When GCC is migrated to v3.x, 'gcc-2.x\gcc\config\rs6000\eabi-ctors.c' was removed.
Restoring this file will solve the problem.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list