<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>Is it correct that clang does not produce an error for an empty enum?<br>cat test.c<br>enum Empty{}; <br>clang test.c  -> no warnings or errors<br><br>gcc test.c<br>/Users/patrickflannery/test.c:1: error: parse error before '}' token<br><br>The code in ParseEnumBody would only omit a warning with pedantic. <br><br>// C does not allow an empty enumerator-list, C++ does
 [dcl.enum].                                                                                                <br>if (Tok.is(tok::r_brace) && !getLang().CPlusPlus)<br>    Diag(Tok, diag::ext_empty_struct_union_enum, "enum");<br><br>Patrick <br><br></div></div><br>

      <hr size=1>Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a></body></html>