bugDotGNU Portable.NET - Bugs: bug #10586, Bug in declaration initializers

 
 

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

bug #10586: Bug in declaration initializers

Submitted by:  None
Submitted on:  Tue 05 Oct 2004 07:07:48 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Tue 07 Jun 2005 01:45:24 PM UTC, comment #1:

GCC does compile this and cscc does not with CVS 7.Jun. With this in mind, if anyone were to present me with such code, they would be advised they require further schooling. 8)

However, this is probably related to #7485.

Providing cscc with a bit more pleasant code does in fact work and is probably more appealing to seasoned programmers.

int main()
{
char buffer[8];
char *p = buffer;

return p == buffer;
}

Deryk Robosson <drobosson>
Project Member
Tue 05 Oct 2004 07:07:48 PM UTC, original submission:

int main () {
char buffer[8], *p = buffer;
return p == buffer;
}

/* this does not compile with cscc:
error.c:2: `buffer' undeclared (first use in this function)
but the code is correct */

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

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup1