[Mono-bugs] [Bug 61903][Nor] New - MCS does not support multiple conditions in conditional compilation directives
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 24 Jul 2004 03:48:06 -0400 (EDT)
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@pandora.be.
http://bugzilla.ximian.com/show_bug.cgi?id=61903
--- shadow/61903 2004-07-24 03:48:06.000000000 -0400
+++ shadow/61903.tmp.3628 2004-07-24 03:48:06.000000000 -0400
@@ -0,0 +1,36 @@
+Bug#: 61903
+Product: Mono: Compilers
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: gert.driesen@pandora.be
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: MCS does not support multiple conditions in conditional compilation directives
+
+Apparently mcs does not support multiple conditions in #if directive :
+
+#if (!TEST && !DUNNO && !DUNNO)
+
+public class EntryPoint {
+ public static void Main () {
+ }
+}
+
+#endif
+
+Compiling this code using mcs will result in the following errors :
+
+test.cs(1) error CS1517: Invalid pre-processor directive
+test.cs(1) error CS1517: Invalid pre-processor directive
+Compilation failed: 2 error(s), 0 warnings
+
+The code compiles fine using csc.