Bug 319560 (MONO76736) - MCS adds a default public ctor if ": base ()" is used
Summary: MCS adds a default public ctor if ": base ()" is used
Status: RESOLVED MOVED
Alias: MONO76736
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other All
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Raja R Harinath
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-17 23:06 UTC by Sebastien Pouliot
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:38:20 UTC


---- Reported by sebastien@ximian.com 2005-11-17 16:06:40 MST ----

Description of Problem:
MCS adds a default public ctor if ": base ()" is used on another (e.g.
private) ctor.


Steps to reproduce the problem:
1. Compile the following program with MCS

using System;
using System.Reflection;
 
class Program {
 
        private Program () : base ()
        {
        }
 
        static void Main ()
        {
                Console.WriteLine (typeof (Program).GetConstructors ().Length);
        }
}

2. Execute under Linux and then Windows
3. Compile the same source using CSC
4. Execute under Linux and then Windows


Actual Results:
MCS compiled
Linux: 1
Windows: 1

CSC compiled
Linux: 0
Windows: 0

Expected Results:
Always 0

How often does this happen? 
Always when MCS is used to compile.

Additional Information:
This was the strange ctor extra in System.Text.RegularExpressions.Match
that has been present for ages.



---- Additional Comments From gert.driesen@pandora.be 2005-11-17 16:14:07 MST ----



*** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO75813 ***


This bug was marked DUPLICATE in the database it was moved from.
    Changing resolution to "MOVED"