dotgnu-pnet
[Top][All Lists]
Advanced

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

[Pnet-developers] [bugs #11463] Problem with stackalloc returning an int


From: James Michael DuPont
Subject: [Pnet-developers] [bugs #11463] Problem with stackalloc returning an int lval
Date: Fri, 31 Dec 2004 13:25:46 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041111 Firefox/1.0 (Debian package 1.0-2)

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




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

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11463>
Project: DotGNU Portable.NET
Submitted by: James Michael DuPont
On: Fri 12/31/2004 at 13:25

Category:  None
Severity:  5 - Average
Item Group:  None
Resolution:  None
Privacy:  Public
Assigned to:  None
Status:  Open


Summary:  Problem with stackalloc returning an int lval

Original Submission:  // TESTCASE 11 for MONO+PNET=the mono + pnet = 
monopolnet/monopoly
// Problem with stackalloc returning an int lval
// incompatible types in assignment: no conversion from `int' to `char *
// based on mcs/class/corlib/System/DateTime.cs
// static unsafe void ZeroPad (StringBuilder output, int digits, int len)
//                      // more than enough for an int
//                      char* buffer = stackalloc char [16];

class F
{
        unsafe void f()
        {
                char * buffer = stackalloc char [16]; //testcase11.cs:11: 
incompatible types in assignment: no conversion from `int' to `char *
                char []  buffer2 = stackalloc char [16]; //testcase11.cs:12: 
incompatible types in assignment: no conversion from `int' to `char[]'
                int      buffer3 = stackalloc char [16]; //WTF
        }
}











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

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





reply via email to

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