[Mono-bugs] [Bug 82029][Nor] New - [GMCS] Base class constraint for struct not emitted as generic parameter constraint

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Jul 7 12:05:35 EDT 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gert.driesen at pandora.be.

http://bugzilla.ximian.com/show_bug.cgi?id=82029

--- shadow/82029	2007-07-07 12:05:35.000000000 -0400
+++ shadow/82029.tmp.2130	2007-07-07 12:05:35.000000000 -0400
@@ -0,0 +1,39 @@
+Bug#: 82029
+Product: Mono: Compilers
+Version: 1.2
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [GMCS] Base class constraint for struct not emitted as generic parameter constraint
+
+Where a "struct" base class contraint is specified for a type parameter, 
+then gmcs not emit this as a generic parameter constraint as well like MS 
+does.
+
+This leads to bogus warnings in the Class Status pages.
+
+To reproduce, compile and run the attached code.
+
+Expected result:
+
+struct (System.ValueType, System.IDisposable) T
+class (System.IDisposable) T
+
+This is the result when compiled using csc, and executed on MS or Mono.
+
+Actual result:
+
+struct (System.IDisposable) T
+class (System.IDisposable) T
+
+This is the result when compiled using gmcs, and executed on MS or Mono.


More information about the mono-bugs mailing list