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

Submitted by:  None
Submitted on:  Wed 21 Apr 2004 11:03:52 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned 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>
Project 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>
Project 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

 

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

 

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

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 24 Apr 2004 01:41:40 PM UTCt3rmin4t0rStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Thu 22 Apr 2004 03:34:48 PM UTCt3rmin4t0rAttached File-=>Added c_lvalue.tc.patch, #1220

Back to the top


Powered by Savane 3.1-cleanup1