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

Submitter:  None
Submitted:  Tue 05 Oct 2004 07:07:48 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned 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>
Group 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

 

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

No files currently attached

 

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.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.13-3230.
Corresponding source code