[nem-bug] [Nemerle 0000612]: code generation problem with uint

feedback at nemerle.org feedback at nemerle.org
Mon Feb 6 01:20:34 CET 2006


The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=612> 
======================================================================
Reported By:                aleksey
Assigned To:                
======================================================================
Project:                    Nemerle
Issue ID:                   612
Category:                   Compiler
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             02-06-2006 01:20 CET
Last Modified:              02-06-2006 01:20 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
======================================================================

Issue History
Date Modified  Username       Field                    Change              
======================================================================
02-06-06 01:20 aleksey        New Issue                                    
======================================================================




More information about the bugs mailing list