This doesn't compile anymore, because there is no scope from which to reference A or B, there you need
then you can no longer have the anonymous enumeration. IOW, anonymous enumerations and scoped enumerations don't play nice with each other.
In addition to that, the anonymous enumeration cannot be used without an identifier which, if it is allowed, should also be allowed without the identifier but, if allowed, would leave no way to reference the enumeration constants outside the record's definition.
Allowing anonymous enumerations is problematic.