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

Submitted by:  Gopal.V <t3rmin4t0r>
Submitted on:  Tue 18 May 2004 03:11:49 PM UTC  
 
Category: NoneSeverity: 1 - Wish
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned 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>
Project 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>
Project Administrator

 

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

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 08 Jun 2004 02:19:15 PM UTCt3rmin4t0rStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Tue 18 May 2004 03:11:49 PM UTCt3rmin4t0rAttached File-=>Added ternary.c, #1318

Back to the top


Powered by Savane 3.1-cleanup1