BUG: Compiler Fails Syntax Check of Extra Comma in enum ListLast reviewed: July 31, 1997Article ID: Q133179 |
The information to this article applies to:
SYMPTOMSThe compiler syntax checker does not detect the presence of a trailing comma in an enum list declaration.
RESOLUTIONDo not use a comma at the end of an enum list declaration.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONAn extra comma at the end of an initializer in braces as in the following is allowed, however, it should not be allowed in enum lists:
{ ... , }, Sample Code to Demonstrate Problem
/* Compile options needed: None */ enum enmX { ka =0, kb = 1, }; // No error or warning in this line void main(void){} |
Additional query words: 8.00 8.0 8.00c 8.0c 9.00 9.0 9.10 9.1 9.20 9.2
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |