Files
clang-p2996/clang/lib/AST/FormatString.cpp
Aaron Ballman 3632e2f517 Diagnose incorrect use of scoped enumerations in format strings
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
2023-06-16 15:03:38 -04:00

32 KiB