Open
Description
MSVC accepts, Clang rejects
https://godbolt.org/z/4nqYeqoor
Edit:
Just tried it on my windows machine and it seems to be supported there. compiler explorer runs on linux so I recall -fms-extensions doing next to nothing in that environment. feel free to close
Edit 2:
with -fms-extensions on windows, this is the behavior of Clang:
typedef enum a : uint16_t A; // accepted
typedef enum : uint16_t A; // rejected
typedef enum : uint16_t { } A; // rejected