Scoped enumerations in C++ do not undergo conversion to their underlying type as part of default argument promotion, and so these uses are UB. GCC correctly diagnoses them, and now Clang matches. Fixes https://github.com/llvm/llvm-project/issues/38717
32 KiB
32 KiB