[Mono-bugs] [Bug 22567] New - #line preprocessor elements sets line counter to incorrect value
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
26 Mar 2002 21:28:59 -0000
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 duco@lorentz.xs4all.nl.
http://bugzilla.ximian.com/show_bug.cgi?id=22567
--- shadow/22567 Tue Mar 26 16:28:59 2002
+++ shadow/22567.tmp.31785 Tue Mar 26 16:28:59 2002
@@ -0,0 +1,45 @@
+Bug#: 22567
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details: SuSE Linux 7.1
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: duco@lorentz.xs4all.nl
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: #line preprocessor elements sets line counter to incorrect value
+
+Description of Problem:
+"#line <n>" should set the line number of the next line in the source file
+to "n", but is sets it to "n+2".
+
+Steps to reproduce the problem:
+using System;
+
+public class TestXX {
+
+// This is line 5. There is a syntax error on "physical" line 9.
+// Because of the '#line 100' element, this should be reported as line 101
+#line 100
+
+ public Main ()
+ {
+ }
+
+}
+
+Actual Results:
+Compilation reports a syntax error on line 103
+
+Expected Results:
+A syntax error line 101 (as csc reports)
+
+How often does this happen?
+Always