HomePhabricator

Check whether the destination is a complete type in a static_cast (or C-style…

Authored by rsmith on Dec 16 2019, 6:26 PM.

Description

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.

Details

Committed
rsmithDec 16 2019, 6:33 PM
Parents
rGce12a523b0e1: [libomptarget][nfc] Move timer functions behind target_impl
Branches
Unknown
Tags
Unknown