bugDotGNU Portable.NET - Bugs: bug #1531, cscc-c-s: unable to use the...

 
 

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

bug #1531: cscc-c-s: unable to use the address-of operator

Submitted by:  None
Submitted on:  Mon 28 Oct 2002 11:34:01 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Wed 06 Nov 2002 12:15:03 AM UTC, comment #1:

The compiler bug has been fixed (CVS version 6 Nov 2002). The "virtual memory exhausted" is due to parameter mismatch. "%u" cannot be used to print pointers (the CLI is much stricter about types). Working on producing a better error message.

Rhys Weatherley <rweather>
Project Administrator
Mon 28 Oct 2002 11:34:01 AM UTC, original submission:

example test.c:

main(){
static char foo[5];
printf("address=%u\n",&foo);
}

$cscc test.c
test.c:3: invalid lvalue in unary `&ยด

Using "&foo[0]" or "foo" instead of "&foo" compiles but raise a "virtual memory exhauseted" error.

Anonymous

 

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

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 06 Nov 2002 12:15:03 AM UTCrweatherOpen/ClosedOpen=>(Error - Not Found)
Wed 06 Nov 2002 12:15:02 AM UTCrweatherStatusNone=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1