bugDotGNU Portable.NET - Bugs: bug #8999, Managed C CSCC does not compile...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #8999: Managed C CSCC does not compile const string ternary expressions properly

Submitter:  Gopal.V <t3rmin4t0r>
Submitted:  Tue 18 May 2004 03:11:49 PM UTC
   
 
Category:  None Severity:  1 - Wish
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Tue 08 Jun 2004 02:19:15 PM UTC, comment #1: 

CString & CWString was returning a ILMachineType_String .
Changed those two to ILMachineType_UnmanagedPtr.

Fixed in CVS on 8th June 2004

Gopal.V <t3rmin4t0r>
Group administrator
Tue 18 May 2004 03:11:49 PM UTC, original submission:  

Code that looks like

(test) ? " OK " : " NOT OK "

Compiles into

brfalse.s  ?L2066
ldsflda    valuetype '$strings-1-2'/type11 '$strings-1-2'::str1
conv.u8
call       class System.String [mscorlib]System.UInt64::ToString(unsigned int64)
br.s       ?L2071
?L2066:
ldsflda    valuetype '$strings-1-2'/type7 '$strings-1-2'::str2
conv.u8
call       class System.String [mscorlib]System.UInt64::ToString(unsigned int64)
?L2071:
call       int64 [mscorlib]System.Int64::FromString(class System.String)
conv.ovf.i

The problem is essentially in the two strings being
converted to the same type and then to a pointer after
that .

Gopal.V <t3rmin4t0r>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #1326:  ternary.c added by t3rmin4t0r (135B - application/octet-stream - simple test case)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-06-08 t3rmin4t0r StatusNone Fixed
    Open/ClosedOpen Closed
2004-05-18 t3rmin4t0r Attached File- Added ternary.c, #1318

Back to the top

Powered by Savane 3.15-94dd.
Corresponding source code