Corentin Jabot
683e83c56f
[Clang][C++2b] P2242R3: Non-literal variables [...] in constexpr
...
Allow goto, labelled statements as well as `static`, `thread_local`, and
non-literal variables in `constexpr` functions.
As specified. for all of the above (except labelled statements) constant
evaluation of the construct still fails.
For `constexpr` bodies, the proposal is implemented with diagnostics as
a language extension in older language modes. For determination of
whether a lambda body satisfies the requirements for a constexpr
function, the proposal is implemented only in C++2b mode to retain the
semantics of older modes for programs conforming to them.
Reviewed By: aaron.ballman, hubert.reinterpretcast, erichkeane
Differential Revision: https://reviews.llvm.org/D111400
2022-03-22 19:51:19 +01:00
..
2021-11-11 13:51:26 -06:00
2020-09-16 14:49:03 -04:00
2017-04-07 10:13:00 +00:00
2022-03-14 09:24:19 -04:00
2022-03-22 10:00:05 -04:00
2021-05-24 16:21:03 -07:00
2021-03-12 07:21:03 -05:00
2022-02-09 17:16:10 -05:00
2020-05-05 13:54:55 -04:00
2020-05-08 13:33:39 -04:00
2020-05-08 13:33:39 -04:00
2020-05-01 14:17:01 -04:00
2017-08-15 19:47:06 +00:00
2020-04-28 23:49:35 -07:00
2022-02-09 17:16:10 -05:00
2021-08-20 11:10:53 -04:00
2022-02-09 17:16:10 -05:00
2020-10-06 08:47:17 -04:00
2016-10-02 03:31:58 +00:00
2019-09-26 17:19:22 +00:00
2019-09-26 17:19:22 +00:00
2018-02-06 22:39:25 +00:00
2020-08-13 16:02:07 -04:00
2020-02-18 16:16:37 -08:00
2020-02-18 16:16:37 -08:00
2022-03-22 19:51:19 +01:00
2021-09-27 14:11:16 -05:00
2018-07-17 04:56:22 +00:00
2019-03-19 01:51:19 +00:00
2021-11-11 13:51:26 -06:00
2019-02-05 12:05:53 +00:00
2018-04-13 18:05:21 +00:00
2021-05-27 18:24:21 +02:00
2017-01-20 00:45:35 +00:00
2020-10-08 10:30:54 -07:00
2022-03-01 12:35:20 +00:00
2019-09-22 20:55:01 +00:00
2018-09-07 09:21:09 +00:00
2019-07-15 20:02:23 +00:00
2018-02-28 07:15:55 +00:00
2020-05-15 12:23:31 -07:00
2018-09-22 01:03:16 +00:00
2018-09-17 05:25:47 +00:00
2017-08-13 22:26:53 +00:00
2019-02-15 19:59:45 +00:00
2020-01-24 00:48:59 +02:00
2019-06-03 22:59:17 +00:00
2019-06-03 22:59:17 +00:00
2019-08-26 23:28:05 +00:00
2019-11-26 20:28:52 -08:00
2019-06-03 22:59:17 +00:00
2021-11-01 16:04:52 -04:00
2019-08-27 00:13:52 +00:00
2022-02-09 17:16:10 -05:00
2020-10-06 08:47:17 -04:00
2022-02-09 17:16:10 -05:00
2022-02-09 17:16:10 -05:00
2017-04-17 23:44:51 +00:00
2018-01-12 18:54:35 +00:00
2022-02-09 17:16:10 -05:00
2022-02-09 17:16:10 -05:00
2021-09-27 14:11:16 -05:00
2022-01-10 16:38:01 -08:00
2021-06-23 13:26:03 +02:00
2022-02-09 17:16:10 -05:00
2017-05-30 11:54:55 +00:00
2017-05-30 11:54:55 +00:00
2021-03-31 13:36:23 +00:00
2020-01-24 23:56:47 +00:00
2022-02-09 17:16:10 -05:00
2022-02-09 17:16:10 -05:00
2021-08-23 09:46:38 -07:00
2020-09-22 08:03:03 -04:00
2022-02-09 17:16:10 -05:00