Fix defaulted-functions-in-C++98 extension to give the functions the same
effect they would have in C++11. In particular, they do not prevent value-initialization from performing zero-initialization, nor do they prevent a struct from being an aggregate. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290229 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/AST/DeclCXX.cpp 3 additions, 8 deletionslib/AST/DeclCXX.cpp
- lib/Sema/SemaInit.cpp 15 additions, 17 deletionslib/Sema/SemaInit.cpp
- test/CodeGenCXX/global-init.cpp 2 additions, 0 deletionstest/CodeGenCXX/global-init.cpp
- test/CodeGenCXX/value-init.cpp 9 additions, 1 deletiontest/CodeGenCXX/value-init.cpp
- test/SemaCXX/aggregate-init-cxx98.cpp 7 additions, 0 deletionstest/SemaCXX/aggregate-init-cxx98.cpp
- test/SemaCXX/aggregate-initialization.cpp 0 additions, 2 deletionstest/SemaCXX/aggregate-initialization.cpp
Loading
Please register or sign in to comment