bugDotGNU Portable.NET - Bugs: bug #3593, [0.5.6] Multiple static...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #3593: [0.5.6] Multiple static constructors allowed but not called in main class

Submitted by:  Yannis BRES <yannis_bres>
Submitted on:  Wed 14 May 2003 10:29:53 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sun 22 Jun 2003 05:44:26 PM UTC, comment #3:

Fixed in CVS on 22 June 2003

Gopal.V <t3rmin4t0r>
Project Administrator
Sun 01 Jun 2003 04:11:32 PM UTC, comment #2:

The presence of multiple static constructors now throw an error in cscc ... Investigating second bug

Gopal.V <t3rmin4t0r>
Project Administrator
Wed 28 May 2003 05:04:08 PM UTC, comment #1:

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 !)

Gopal.V <t3rmin4t0r>
Project Administrator
Wed 14 May 2003 10:29:53 AM UTC, 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,
Yannis

Yannis BRES <yannis_bres>

 

Attached Files
file #446:  MultipleStaticConstructors.cs added by yannis_bres (390B - text/plain - Multiple static constructors allowed but not called in main class)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 22 Jun 2003 05:44:26 PM UTCt3rmin4t0rStatusNone=>(Error - Not Found)
  Open/ClosedOpen=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1