PR39728: When completing a class, complete the destructor first.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 31 May 2019 01:25:16 +0000 (01:25 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 31 May 2019 01:25:16 +0000 (01:25 +0000)
commitdbd3ce92e691848a34fb7623b487d699de7674d7
tree356923c33f037f0068b5ef01fd53fe713264dd20
parent059b823e709a90d3b5d2d24663830e59b3bdded9
PR39728: When completing a class, complete the destructor first.

We need to know whether the destructor is trivial in order to tell
whether other parts of the class are valid (in particular, this affects
whether the type is a literal type, which affects whether defaulted
special members can be declared constexpr or are implicitly constexpr).

llvm-svn: 362184
clang/lib/Sema/SemaDeclCXX.cpp
clang/test/SemaCXX/constant-expression-cxx1y.cpp