[all-commits] [llvm/llvm-project] eea8ba: Check whether the destination is a complete type i...
Richard Smith via All-commits
all-commits at lists.llvm.org
Mon Dec 16 18:33:47 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: eea8ba097c4a86632b88291bea51eb710f8ae4fb
https://github.com/llvm/llvm-project/commit/eea8ba097c4a86632b88291bea51eb710f8ae4fb
Author: Richard Smith <richard at metafoo.co.uk>
Date: 2019-12-16 (Mon, 16 Dec 2019)
Changed paths:
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/AST/Type.cpp
M clang/lib/Sema/SemaCast.cpp
M clang/test/SemaCXX/enum.cpp
Log Message:
-----------
Check whether the destination is a complete type in a static_cast (or
C-style cast) to an enumeration type.
We previously forgot to check this, and happened to get away with it
(with bad diagnostics) only because we misclassified incomplete
enumeration types as not being unscoped enumeration types. This also
fixes the misclassification.
More information about the All-commits
mailing list