Bugs item #1557983, was opened at 2006-09-13 15:32
Message generated for change (Comment added) made by pruebauno
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1557983&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: Python 2.5
>Status: Closed
Resolution: None
Priority: 5
Submitted By: prueba uno (pruebauno)
Assigned to: Nobody/Anonymous (nobody)
Summary: xlc 6 does not like bufferobject.c line22
Initial Comment:
The VisualAge 6 Compiler on AIX complains about the
extra comma on line 22 of bufferobject. Doing the
following change keeps the compiler happy.
enum buffer_t {
READ_BUFFER,
WRITE_BUFFER,
CHAR_BUFFER,
- ANY_BUFFER,
};
enum buffer_t {
READ_BUFFER,
WRITE_BUFFER,
CHAR_BUFFER,
+ ANY_BUFFER
};
----------------------------------------------------------------------
>Comment By: prueba uno (pruebauno)
Date: 2006-09-14 13:22
Message:
Logged In: YES
user_id=30777
All right, I guess I have to complain to IBM then :-)
----------------------------------------------------------------------
Comment By: Sjoerd Mullender (sjoerd)
Date: 2006-09-13 15:49
Message:
Logged In: YES
user_id=43607
That's a bug in the compiler, not in Python. The C standard
has:
enum-specifier:
enum identifieropt { enumerator-list }
enum identifieropt { enumerator-list , }
enum identifier
enumerator-list:
enumerator
enumerator-list , enumerator
enumerator:
enumeration-constant
enumeration-constant = constant-expression
From the first production you can see that the comma at the
end is allowed. This has been true since at least 1980.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1557983&group_id=5470
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com