clang/test/CXX/drs
Richard Smith 5786130f48 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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@341499 91177308-0d34-0410-b5e6-96231b3b80d8
2018-09-05 22:30:37 +00:00
..
dr0xx.cpp Related to PR37768: improve diagnostics for class name shadowing. 2018-06-20 21:58:20 +00:00
dr1xx.cpp Fix regression in r332076. 2018-05-14 20:52:48 +00:00
dr2xx.cpp Replace remaining user-visible mentions of C++1z with C++17. 2017-08-13 22:26:53 +00:00
dr3xx.cpp DR330: when determining whether a cast casts away constness, consider 2018-07-18 20:13:36 +00:00
dr4xx.cpp [Sema] Use %sub to cleanup overload diagnostics 2018-05-30 01:00:41 +00:00
dr5xx.cpp Adjust and fix failing CXX tests after r332799 2018-05-19 03:33:56 +00:00
dr6xx.cpp Fix test failure on target where size_t is long long. 2018-02-19 22:50:50 +00:00
dr7xx.cpp DR727: remove wrong assertion for use of class-scope explicit 2018-04-23 18:38:30 +00:00
dr9xx.cpp [Parse] Allow 'constexpr' in condition declarations 2015-06-25 22:06:40 +00:00
dr10xx.cpp When substituting previously-checked template arguments into a template 2018-03-08 01:07:33 +00:00
dr11xx.cpp DR1113: anonymous namespaces formally give their contents internal linkage. 2017-09-22 22:21:44 +00:00
dr12xx.cpp DR1213: Ignore implicit conversions when determining if an operand of an 2018-06-27 20:29:32 +00:00
dr13xx.cpp PR38627: Fix handling of exception specification adjustment for 2018-09-05 22:30:37 +00:00
dr14xx.cpp DR1672, DR1813, DR1881, DR2120: Implement recent fixes to "standard 2018-04-05 18:55:37 +00:00
dr15xx.cpp DR1687: When overload resolution selects a built-in operator, implicit 2018-06-27 20:30:34 +00:00
dr16xx.cpp Warn if a local variable's initializer retains a pointer/reference to a 2018-07-24 00:55:08 +00:00
dr17xx.cpp P0136R1, DR1573, DR1645, DR1715, DR1736, DR1903, DR1941, DR1959, DR1991: 2016-06-28 19:03:57 +00:00
dr18xx.cpp Fold -Wreturn-stack-address into general initialization lifetime 2018-07-23 21:21:22 +00:00
dr19xx.cpp PR31606: Generalize our tentative DR resolution for inheriting copy/move 2017-01-13 20:46:54 +00:00
dr20xx.cpp PR33850: Update cxx_dr_status for Clang 5 branch. 2017-08-11 03:14:20 +00:00
dr21xx.cpp DR1672, DR1813, DR1881, DR2120: Implement recent fixes to "standard 2018-04-05 18:55:37 +00:00
dr22xx.cpp DR1672, DR1813, DR1881, DR2120: Implement recent fixes to "standard 2018-04-05 18:55:37 +00:00
dr118.cpp Add tests for a couple more DRs. 2016-12-09 19:35:45 +00:00
dr158.cpp Make '-disable-llvm-optzns' an alias for '-disable-llvm-passes'. 2016-12-23 00:23:01 +00:00
dr412.cpp C++14: Disable sized deallocation by default due to ABI breakage 2015-03-20 00:31:07 +00:00
dr1748.cpp Update cxx_dr_status to cover dr1748 and add test. 2015-02-14 03:38:31 +00:00