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
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open

Discussion

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

 

Attached Files

This item currently has no attached files.

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

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.

 

History

No changes have been made to this item

Back to the top

Powered by Savane 3.16-a7ba.
Corresponding source code