Le mercredi 21 août 2013 11:29:13 [email protected] a écrit : > [2] no error reported when using undefined enum. > > $ tcc -run - > enum color { RED, GREEN, BLUE }; > int main() > { > enum rgb c=BLUE; /* undefined enum */ > enum color d=GREEN; > printf("c=%d,d=%d\n", c, d); > return 0; > } > c=2,d=1
Fixed in the mob branch as of commit cdb1ad76549e5a5140025699e6edf1f9bf516bc0. But for now tcc will happily create two enum with overlapping "members" (I'm not sure of the word). So you could have enum rgb and enum color defined with as both RED, GREEN, BLUE and tcc wouldn't complain. Thanks again John for the bug report. Thomas
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel
