[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bug #3593] [0.5.6] Multiple static constructors allow

From: nobody
Subject: [Pnet-developers] [bug #3593] [0.5.6] Multiple static constructors allowed but not called in main class
Date: Sun, 22 Jun 2003 13:44:27 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; Galeon) Gecko/20010901

=================== BUG #3593: LATEST MODIFICATIONS ==================

Changes by: Gopal.V <address@hidden>
Date: Sun 06/22/2003 at 23:14 (Asia/Calcutta)

            What     | Removed                   | Added
          Resolution | None                      | Fixed
              Status | Open                      | Closed

------------------ Additional Follow-up Comments ----------------------------
Fixed in CVS on 22 June 2003

=================== BUG #3593: FULL BUG SNAPSHOT ===================

Submitted by: yannis_bres             Project: DotGNU Portable.NET          
Submitted on: Wed 05/14/2003 at 15:59
Category:  None                       Severity:  5 - Major                  
Bug Group:  None                      Resolution:  Fixed                    
Assigned to:  None                    Status:  Closed                       

Summary:  [0.5.6] Multiple static constructors allowed but not called in main 

Original Submission:  The following program declares two static constructors, 
which I guess should not be accepted by the compiler (at least, MS one refuses 
to compile such a program).

Then, even if you comment one of the static constructors, none seems to be 
called (only "Hello!" is printed).  I guess this is a special case for the main 
class, as static constructors seems to be properly called in non-main classes.

Have fun,

Follow-up Comments

Date: Sun 06/22/2003 at 23:14       By: t3rmin4t0r
Fixed in CVS on 22 June 2003

Date: Sun 06/01/2003 at 21:41       By: t3rmin4t0r
The presence of multiple static constructors now throw an error in cscc ... 
Investigating second bug

Date: Wed 05/28/2003 at 22:34       By: t3rmin4t0r
Problem occurs only when the static ctors are in the class with the entrypoint 

The ilrun.c should be hacked to call the .cctor before calling
the entry point ... which should fix this bug 

(but nice catch !)

CC list is empty

File Attachments

Date: Wed 05/14/2003 at 15:59  Name: MultipleStaticConstructors.cs  Size: 0KB   
By: yannis_bres
Multiple static constructors allowed but not called in main class;bug_id=3593&amp;bug_file_id=449

For detailed info, follow this link:

  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]