bugDotGNU Portable.NET - Bugs: bug #11463, Problem with stackalloc returning...

 
 

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

bug #11463: Problem with stackalloc returning an int lval

Submitter:  James Michael DuPont <mdupont>
Submitted:  Fri 31 Dec 2004 01:25:54 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Fri 31 Dec 2004 01:25:54 PM UTC, 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
}
}

James Michael DuPont <mdupont>

 

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

No files currently attached

 

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.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.13-758e.
Corresponding source code