-
Notifications
You must be signed in to change notification settings - Fork 15k
Open
Labels
cclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyVerified by a second partyextension:microsoft
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; // rejectedMetadata
Metadata
Assignees
Labels
cclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyVerified by a second partyextension:microsoft