HomePhabricator

Defer checking for mismatches between the deletedness of and overriding…

Authored by rsmith on Mar 11 2020, 1:49 PM.

Description

Defer checking for mismatches between the deletedness of and overriding function and an overridden function until we know whether the overriding function is deleted.

We previously did these checks when we first built the declaration,
which was too soon in some cases. We now defer all these checks to the
end of the class.

Also add missing check that a consteval function cannot override a
non-consteval function and vice versa.

Details

Committed
rsmithMar 12 2020, 1:07 PM
Parents
rG2a2d24201750: [DAGCombine] foldVSelectOfConstants - ensure constants are same type
Branches
Unknown
Tags
Unknown