Bugzilla – Bug 319560
MCS adds a default public ctor if ": base ()" is used
Last modified: 2007-09-15 21:24:23 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"