[Mono-bugs] [Bug 60620][Wis] New - MCS can't compile code CSC can.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 23 Jun 2004 07:48:47 -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 ray@lcdstudio.com.

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

--- shadow/60620	2004-06-23 07:48:47.000000000 -0400
+++ shadow/60620.tmp.9668	2004-06-23 07:48:47.000000000 -0400
@@ -0,0 +1,45 @@
+Bug#: 60620
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: ray@lcdstudio.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: MCS can't compile code CSC can.
+
+Description of Problem: mcs has trouble compiling the following code 
+snippet:
+
+temp_srcport = *(short *)&fixed_buf[e.HeaderLength];
+temp_dstport = *(short *)&fixed_buf[e.HeaderLength+2];
+
+Steps to reproduce the problem:
+1. get http://yarvje.dyndns.org/~ray/RawSocket.cs
+2. mcs /target:library RawSocket.cs  -unsafe
+3. 
+
+Actual Results:
+RawSocket.cs(131) error CS0212: You can only take the address of an 
+unfixed expression inside of a fixed statement initializer
+RawSocket.cs(132) error CS0212: You can only take the address of an 
+unfixed expression inside of a fixed statement initializer
+Compilation failed: 2 error(s), 0 warnings
+
+Expected Results:
+
+Successfull compile
+
+How often does this happen? 
+
+All the time.
+
+Additional Information: