[nem-bug] [Nemerle 0000612]: code generation problem with uint
feedback at nemerle.org
feedback at nemerle.org
Sun Feb 12 13:43:26 CET 2006
The following issue has been RESOLVED.
======================================================================
<http://nemerle.org/bugs/view.php?id=612>
======================================================================
Reported By: aleksey
Assigned To: nazgul
======================================================================
Project: Nemerle
Issue ID: 612
Category: Compiler
Reproducibility: always
Severity: minor
Priority: normal
Status: resolved
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 02-06-2006 01:20 CET
Last Modified: 02-12-2006 13:43 CET
======================================================================
Summary: code generation problem with uint
Description:
module M
{
f(x : double) : void
{
System.Console.WriteLine("{0}", x);
}
Main() : void
{
f(2 : uint);
}
}
Compiler reports:
warning: failed to emit value type conversion from System.UInt32 to
System.Double.
Console output:
1.01050465673157E-314
Unhandled Exception: System.AccessViolationException: Attempted to read or
write protected memory. This is often an indication that other memory is
corrupt.
il dump:
L_0000: ldc.i4.2
L_0001: conv.ovf.u4
L_0002: nop
L_0003: call void M::f(float64)
L_0008: ret
======================================================================
----------------------------------------------------------------------
nazgul - 02-12-06 13:43
----------------------------------------------------------------------
Fixed on trunk (r6116). Thanks for reporting it :)
Issue History
Date Modified Username Field Change
======================================================================
02-06-06 01:20 aleksey New Issue
02-12-06 13:43 nazgul Status new => resolved
02-12-06 13:43 nazgul Resolution open => fixed
02-12-06 13:43 nazgul Assigned To => nazgul
02-12-06 13:43 nazgul Note Added: 0001082
======================================================================
More information about the bugs
mailing list