bugDotGNU Portable.NET - Bugs: bug #8638, managed arrays in C compiler

 
 

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

bug #8638: managed arrays in C compiler

Submitter:  None
Submitted:  Wed 21 Apr 2004 11:03:52 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Sat 24 Apr 2004 01:41:40 PM UTC, comment #3: 

Fixed in cvs - 24th April 2004

Gopal.V <t3rmin4t0r>
Group administrator
Thu 22 Apr 2004 04:39:40 PM UTC, comment #2: 

Thanks Gopal. I don't know why the code didn't compile for you; I was using v0.6.4, and of course you have to include csharp.h. I will try to check out your patch later on.

Anonymous
Thu 22 Apr 2004 03:34:48 PM UTC, comment #1: 

Strangely the code

__box int array[] = new __box int[10];

does not compile for me .

But I think the attached patch fixes your problem ?.

I'll check in this after rhys's comments :)

Gopal.V <t3rmin4t0r>
Group administrator
Wed 21 Apr 2004 11:03:52 AM UTC, original submission:  

The following declare managed arrays:

__box int array[]=new __box int[10];
int array __gc[] = __gc new int[10];

but then don't work with ordinary C subscripting i.e.

array[0]=0;

gives "subscripted value is neither array nor pointer" compiler error in both cases.

Anonymous

 

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

Attached Files
file #1236:  c_lvalue.tc.patch added by t3rmin4t0r (1009B - application/octet-stream - c_lvalue.tc Patch)

 

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.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-04-24 t3rmin4t0r StatusNone Fixed
    Open/ClosedOpen Closed
2004-04-22 t3rmin4t0r Attached File- Added c_lvalue.tc.patch, #1220

Back to the top

Powered by Savane 3.12