llvm-project/clang/test/CXX/dcl.dcl
Bruno Cardoso Lopes 5c1399a582 [constexpr][c++2a] Try-catch blocks in constexpr functions
Implement support for try-catch blocks in constexpr functions, as
proposed in http://wg21.link/P1002 and voted in San Diego for c++20.

The idea is that we can still never throw inside constexpr, so the catch
block is never entered. A try-catch block like this:

try { f(); } catch (...) { }

is then morally equivalent to just

{ f(); }

Same idea should apply for function/constructor try blocks.

rdar://problem/45530773

Differential Revision: https://reviews.llvm.org/D55097

llvm-svn: 348789
2018-12-10 19:03:12 +00:00
..
basic.namespace PR31606: Generalize our tentative DR resolution for inheriting copy/move 2017-01-13 20:46:54 +00:00
dcl.attr When a dependent alignas is applied to a non-dependent typedef, 2018-06-20 23:36:55 +00:00
dcl.enum
dcl.link Bring r325915 back. 2018-02-23 19:30:48 +00:00
dcl.spec [constexpr][c++2a] Try-catch blocks in constexpr functions 2018-12-10 19:03:12 +00:00
p4-0x.cpp