[Mono-bugs] [Bug 76217][Nor] New - Incorrect MCS error caused by
change in literal length (precise location bug?)
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sat Sep 24 17:39:45 EDT 2005
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 peter at newton.cx.
http://bugzilla.ximian.com/show_bug.cgi?id=76217
--- shadow/76217 2005-09-24 17:39:45.000000000 -0400
+++ shadow/76217.tmp.3388 2005-09-24 17:39:45.000000000 -0400
@@ -0,0 +1,36 @@
+Bug#: 76217
+Product: Mono: Compilers
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: atsushi at ximian.com
+ReportedBy: peter at newton.cx
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Incorrect MCS error caused by change in literal length (precise location bug?)
+
+I have a tool that generates some source code with CodeDom. Starting at
+least a few months ago, MCS started reporting erroneous compile errors: it
+was saying 'Expecting ;' even though the line was syntactically correct.
+Even stranger, I could "fix" the error in at least three ways:
+
+* wrapping the entire code block in "if (true) { }"
+* removing the #line directives in the file (placed there by CodeDom)
+* changing the length of a string literal on that line
+
+So something REALLY weird must be going on here. My guess is that it's
+related to the MCS precise location patch; maybe one of those 8-bit ints
+getting overflowed somewhere?
+
+See the soon-to-be attached tarball for a testcase. Unfortunately I haven't
+been able to reduce the testcase to something relatively small. Just run
+'make' to see it compile the two nearly-identical files; one gets the error
+and the other doesn't. The file 'cause-error.diff' shows the only change
+between them. This happens with HEAD mono and mcs for me.
More information about the mono-bugs
mailing list