https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61469

--- Comment #15 from Thomas Mercier <thomas.mercier.jr at gmail dot com> ---
No objection to the error message, but I would have expected a syntax error for
standards earlier than 23 which don't claim to support manually specifying the
underlying type for the enum. Like this with gcc 12:

test.c:1:21: error: expected identifier or ‘(’ before ‘:’ token
    1 | enum node_stat_item : unsigned {

Reply via email to