llvm-project/clang/test/CXX
Richard Smith 5159bbad8b PR38627: Fix handling of exception specification adjustment for
destructors.

We previously tried to patch up the exception specification after
completing the class, which went wrong when the exception specification
was needed within the class body (in particular, by a friend
redeclaration of the destructor in a nested class). We now mark the
destructor as having a not-yet-computed exception specification
immediately after creating it.

This requires delaying various checks against the exception
specification (where we'd previously have just got the wrong exception
specification, and now find we have an exception specification that we
can't compute yet) when those checks fire while the class is being
defined.

This also exposed an issue that we were missing a CodeSynthesisContext
for computation of exception specifications (otherwise we'd fail to make
the module containing the definition of the class visible when computing
its members' exception specs). Adding that incidentally also gives us a
diagnostic quality improvement.

This has also exposed an pre-existing problem: making the exception
specification evaluation context a non-SFINAE context (as it should be)
results in a bootstrap failure; PR38850 filed for this.

llvm-svn: 341499
2018-09-05 22:30:37 +00:00
..
basic Restore pre-r335182 behavior for naming inherited constructors as 2018-06-22 19:50:19 +00:00
class Related to PR37768: improve diagnostics for class name shadowing. 2018-06-20 21:58:20 +00:00
class.access Diagnose invalid cv-qualifiers for friend decls. 2018-08-03 22:09:44 +00:00
class.derived Add context note to diagnostics that occur while declaring an implicit special member function. 2017-02-23 21:43:43 +00:00
concepts-ts Remove old concepts parsing code 2017-12-07 00:34:20 +00:00
conv Specify an explicit underlying type for this enum to fix Windows 2018-06-29 20:41:23 +00:00
cpp/cpp.predefined P0035R4: add predefined __STDCPP_DEFAULT_NEW_ALIGNMENT__ macro. By default, we 2016-09-30 22:41:36 +00:00
dcl.dcl Add missing temporary materialization conversion on left-hand side of . 2018-07-27 17:13:18 +00:00
dcl.decl [Sema] P0961R1: Relaxing the structured bindings customization point finding rules 2018-08-09 20:11:13 +00:00
drs PR38627: Fix handling of exception specification adjustment for 2018-09-05 22:30:37 +00:00
except PR38141: check whether noexcept-specifications are equivalent in redeclarations 2018-07-12 21:11:25 +00:00
expr PR38627: Fix handling of exception specification adjustment for 2018-09-05 22:30:37 +00:00
lex
modules-ts Bring r325915 back. 2018-02-23 19:30:48 +00:00
over DR1687: When overload resolution selects a built-in operator, implicit 2018-06-27 20:30:34 +00:00
special Fold -Wreturn-stack-address into general initialization lifetime 2018-07-23 21:21:22 +00:00
stmt.stmt Clean up and simplify RequireCompleteType. 2018-08-07 21:35:41 +00:00
temp Improve diagnostic for missing comma in template parameter list. 2018-08-17 19:43:40 +00:00