[Mono-bugs] [Bug 62664][Min] New - CS1034: we don't have "Line cannot exceed 2046 characters" limitation

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 7 Aug 2004 07:44:13 -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 atsushi@ximian.com.

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

--- shadow/62664	2004-08-07 07:44:13.000000000 -0400
+++ shadow/62664.tmp.3271	2004-08-07 07:44:13.000000000 -0400
@@ -0,0 +1,45 @@
+Bug#: 62664
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: atsushi@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: CS1034: we don't have "Line cannot exceed 2046 characters" limitation
+
+csc limits character count of a line to 2046, while mcs does not.
+Such limitation is really meaningless, but sometimes we create such c#
+sources that cannot be compiled by csc (and thus breaks mcs build under
+cygwin).
+
+public class Test
+{
+        string s = @"
+01234567890123456789012345678901234567890123456789 ... (repeat many times)
+... 01234567890123456789012345678901234567890123456789
+";
+}
+
+Actual Results:
+- No error.
+
+Expected Results:
+- for example,
+System.Reflection.Emit\OpCodeNames.cs(4,2046): error CS1034: Compiler limit
+        exceeded: Line cannot exceed 2046 characters
+
+How often does this happen? 
+- consistently.
+
+Additional Information:
+- This limitation seems applied to "line", rather than literal, statement
+or other syntax elements.