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
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open

Discussion

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>

 

Attached Files

This item currently has no attached files.

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

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.

 

History

No changes have been made to this item

Back to the top

Powered by Savane 3.16-11ef.
Corresponding source code