[Mono-bugs] [Bug 38678][Nor] New - MCS Fails to compile an enum

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Tue, 25 Feb 2003 10:13:47 -0500 (EST)

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 gvaish@iitk.ac.in.


--- shadow/38678	Tue Feb 25 10:13:47 2003
+++ shadow/38678.tmp.4922	Tue Feb 25 10:13:47 2003
@@ -0,0 +1,46 @@
+Bug#: 38678
+Product: Mono/MCS
+Version: unspecified
+OS Details: Windows 2000
+Status: NEW   
+Severity: Unknown
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gvaish@iitk.ac.in               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: MCS Fails to compile an enum
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+  MCS Fails to compile an enum. CSC compiles it.
+Steps to reproduce the problem:
+1. Compile the file attached.
+2. The command to execute is "mcs /target:library /out:TESTS.dll 
+Actual Results:
+Unhandled Exception: System.NotSupportedException: Type test_11 was not 
+   at System.Reflection.Emit.ModuleBuilder.PreSave(String fileName)
+   at System.Reflection.Emit.AssemblyBuilder.Save(String assemblyFileName)
+   at Mono.CSharp.CodeGen.Save(String name)
+   at Mono.CSharp.Driver.MainDriver(String[] args)
+   at Mono.CSharp.Driver.Main(String[] args)
+Expected Results:
+ No exception. The "TESTS.dll" should have been compiled successfully.
+How often does this happen? 
+ Every time.
+Additional Information: