[Mono-bugs] [Bug 80093][Min] New - mcs does not check unbalanced #if section when the condition is met

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Nov 30 03:06:30 EST 2006


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 atsushi at ximian.com.

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

--- shadow/80093	2006-11-30 03:06:30.000000000 -0500
+++ shadow/80093.tmp.22658	2006-11-30 03:06:30.000000000 -0500
@@ -0,0 +1,35 @@
+Bug#: 80093
+Product: Mono: Compilers
+Version: 1.2
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: atsushi at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs does not check unbalanced #if section when the condition is met
+
+Compile the example below with -d:NET_2_0 :
+
+--------
+#if NET_2_0
+
+class Test
+{
+}
+--------
+
+Expected:
+test.cs(7,1): error CS1027: #endif directive expected
+
+Actual:
+no CS1027 error.
+
+This does not happen when you don't pass -d:NET_2_0 to mcs.


More information about the mono-bugs mailing list