Move checks for creation of objects of abstract class type from the various
constructs that can do so into the initialization code. This fixes a number of different cases in which we used to fail to check for abstract types. Thanks to Tim Shen for inspiring the weird code that uncovered this! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@289753 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/Sema/SemaExprCXX.cpp 0 additions, 7 deletionslib/Sema/SemaExprCXX.cpp
- lib/Sema/SemaInit.cpp 29 additions, 1 deletionlib/Sema/SemaInit.cpp
- lib/Sema/SemaObjCProperty.cpp 4 additions, 2 deletionslib/Sema/SemaObjCProperty.cpp
- test/CXX/class.derived/class.abstract/p2.cpp 23 additions, 0 deletionstest/CXX/class.derived/class.abstract/p2.cpp
- test/CXX/class.derived/class.abstract/p3.cpp 97 additions, 0 deletionstest/CXX/class.derived/class.abstract/p3.cpp
Loading
Please register or sign in to comment