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

 
 

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

bug #11463: Problem with stackalloc returning an int lval

Submitted by:  James Michael DuPont <mdupont>
Submitted on:  Fri 31 Dec 2004 01:25:54 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned 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>

 

No files currently attached

 

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):

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup