[Mono-bugs] [Bug 56071][Nor] New - mcs reject line directive with zero-length filename

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 26 Mar 2004 08:03:48 -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 gert.driesen@pandora.be.

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

--- shadow/56071	2004-03-26 08:03:48.000000000 -0500
+++ shadow/56071.tmp.24863	2004-03-26 08:03:48.000000000 -0500
@@ -0,0 +1,37 @@
+Bug#: 56071
+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 reject line directive with zero-length filename
+
+Apparently mcs is more strict about the filename argument for the line
+directive.
+
+The following code compiles fine using csc :
+
+namespace Test {
+        public class Test2 {
+                public static void Main() {
+#line 200 ""
+                        return;
+                }
+        }
+}
+
+but fails with the following error using mcs :
+
+error CS1576: Argument to #line directive is missing or invalid
+
+I attached a repro for this issue.