Bug 679467

Summary: .cctors run in incorrect order
Product: [Mono] Mono: Runtime Reporter: Jeroen Frijters <jeroen>
Component: JITAssignee: Paolo Molaro <lupus>
Status: RESOLVED FIXED QA Contact: Mono Bugs <mono-bugs>
Severity: Normal    
Priority: P5 - None CC: forgotten_vxPDddArjq
Version: 2.10.x   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Repro

Description Jeroen Frijters 2011-03-14 17:25:20 UTC
Created attachment 419194 [details]
Repro

User-Agent:       Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)

In the attached program the class constructors run in incorrect order. Note that this can be worked around by using --optimize=shared.

Reproducible: Always

Steps to Reproduce:
1. mcs test.cs
2. mono test.exe

Actual Results:  
B
A


Expected Results:  
A
B
Comment 1 Forgotten User vxPDddArjq 2011-03-14 22:13:49 UTC
Fixed in HEAD/2.10/2.6 branches.
Comment 2 Forgotten User vxPDddArjq 2011-03-14 22:14:00 UTC
Fixed.