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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=75862 --- shadow/75862 2005-08-20 10:36:16.000000000 -0400 +++ shadow/75862.tmp.25782 2005-08-23 05:19:14.000000000 -0400 @@ -1,23 +1,23 @@ Bug#: 75862 Product: Mono: Compilers Version: 1.1 -OS: +OS: unknown OS Details: Status: NEW Resolution: -Severity: +Severity: Unknown Priority: Normal Component: C# -AssignedTo: [EMAIL PROTECTED] +AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] QAContact: [EMAIL PROTECTED] TargetMilestone: --- URL: Cc: -Summary: Invalid IL code generated by mcs when calling destructor +Summary: Invalid IL code generated by mcs (implicit conversions from struct to int) Compile and run this sample. This will give you: ** ERROR **: Invalid IL code at IL0005 in Test:Main (): IL_0005: not aborting... Abort trap @@ -39,6 +39,13 @@ static private LayerMask test; static public void Main () { LayerMask a = ~test; } } + +------- Additional Comments From [EMAIL PROTECTED] 2005-08-23 05:19 ------- +It's not calling the destructor, but bitwise complement operator. + +However, the emitted code is missing a call to the conversion function +from struct to int before applying the complement operator. + _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
