dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bugs #8999] Managed C CSCC does not compile const str


From: Gopal.V
Subject: [Pnet-developers] [bugs #8999] Managed C CSCC does not compile const string ternary expressions properly
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040206 Firefox/0.8

This mail is an automated notification from the bugs tracker
 of the project: DotGNU Portable.NET.




/**************************************************************************/
[bugs #8999] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=8999>
Project: DotGNU Portable.NET
Submitted by: Gopal.V
On: Tue 05/18/04 at 15:11

Category:  None
Severity:  1 - None
Item Group:  None
Resolution:  None
Assigned to:  None
Status:  Open


Summary:  Managed C CSCC does not compile const string ternary expressions 
properly

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 .





File Attachments
-------------------

-------------------------------------------------------
Date: Tue 05/18/04 at 15:11  Name: ternary.c  Size: 135KB   By: t3rmin4t0r
simple test case
http://savannah.gnu.org/bugs/download.php?item_id=8999&amp;item_file_id=1318






For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=8999>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]