Arthur O'Dwyer
469d18c064
[libc++] Fix result-type and value_type computation in <valarray>.
...
The `operator[]` of `_UnaryOp` and `_BinaryOp` returns the result of
calling `__op_`, so its return type should be `__result_type`, not
e.g. `_A0::value_type`. However, `_UnaryOp::value_type` also should
never have been `_A0::value_type`; it needs to be the correct type
for the result of the unary op, e.g. `bool` when the op is `logical_not`.
This turns out to matter when multiple operators are nested, e.g.
`+(v == v)` needs to have a `value_type` of `bool`, not `int`,
even when `v` is of type `valarray<int>`.
Differential Revision: https://reviews.llvm.org/D103416
2021-06-05 12:29:36 -04:00
..
2021-06-04 09:37:12 -07:00
2021-05-26 17:54:33 +02:00
2021-06-04 09:37:12 -07:00
2021-06-04 09:56:31 -07:00
2021-06-04 09:37:12 -07:00
2021-06-04 09:56:31 -07:00
2021-05-21 13:22:10 -07:00
2021-04-25 13:27:19 +02:00
2021-06-04 09:37:12 -07:00
2021-04-20 12:03:32 -04:00
2021-05-26 17:54:33 +02:00
2021-04-26 16:22:42 -04:00
2021-04-22 12:02:22 -04:00
2019-01-19 10:56:40 +00:00
2021-05-21 13:22:10 -07:00
2021-06-04 09:55:21 -04:00
2021-01-19 14:15:48 -05:00
2021-04-20 12:03:32 -04:00
2021-04-20 12:03:32 -04:00
2021-05-26 04:27:30 +00:00
2021-04-20 12:03:32 -04:00
2021-05-31 11:29:16 -04:00
2021-04-20 12:03:32 -04:00
2021-05-29 19:54:48 -04:00
2021-01-27 15:16:55 +00:00
2021-05-29 19:54:48 -04:00
2021-05-29 19:54:48 -04:00
2021-05-18 19:56:30 -04:00
2021-04-20 12:03:32 -04:00
2021-05-29 19:54:48 -04:00
2021-05-29 19:54:48 -04:00
2021-04-21 12:49:07 -04:00
2021-06-03 18:18:42 -04:00
2021-05-29 19:54:48 -04:00
2021-04-20 12:03:32 -04:00
2019-01-19 08:50:56 +00:00
2021-06-04 09:37:12 -07:00
2021-05-29 19:54:48 -04:00
2021-05-29 19:54:48 -04:00
2021-05-29 19:54:48 -04:00
2021-05-29 19:54:48 -04:00
2021-05-29 19:54:48 -04:00
2021-05-29 19:54:48 -04:00
2019-01-19 10:56:40 +00:00
2021-04-20 12:03:32 -04:00
2021-06-04 09:55:21 -04:00
2021-04-20 12:03:32 -04:00
2021-06-04 09:55:21 -04:00
2021-04-20 12:03:32 -04:00
2021-05-29 19:54:48 -04:00
2021-05-29 19:54:48 -04:00
2021-06-04 09:55:21 -04:00
2021-04-20 12:03:32 -04:00
2021-04-20 12:03:32 -04:00
2021-06-04 09:55:21 -04:00
2021-06-04 09:38:49 -07:00
2021-06-04 09:55:21 -04:00
2021-04-20 12:03:32 -04:00
2021-05-13 00:45:39 +00:00
2021-05-29 19:54:48 -04:00
2021-04-20 12:03:32 -04:00
2021-06-04 09:56:31 -07:00
2021-04-20 12:03:32 -04:00
2021-06-04 09:55:21 -04:00
2021-06-04 09:55:21 -04:00
2021-06-04 09:55:21 -04:00
2021-04-20 12:03:32 -04:00
2021-06-04 09:55:21 -04:00
2021-06-04 09:55:21 -04:00
2021-06-04 09:55:21 -04:00
2021-06-04 09:55:21 -04:00
2021-06-04 09:55:21 -04:00
2021-04-20 12:03:32 -04:00
2021-06-04 09:55:21 -04:00
2021-04-20 12:03:32 -04:00
2021-06-04 09:55:21 -04:00
2021-06-04 09:55:21 -04:00
2021-05-18 19:56:30 -04:00
2021-04-20 12:03:32 -04:00
2021-05-29 19:54:48 -04:00
2019-08-06 21:11:24 +00:00
2019-03-29 16:03:57 +00:00
2021-05-29 19:54:48 -04:00
2021-04-20 12:03:32 -04:00
2021-05-26 17:50:09 +02:00
2021-05-29 19:54:48 -04:00
2021-05-29 19:54:48 -04:00
2021-06-04 09:37:12 -07:00
2021-05-29 19:54:48 -04:00
2021-04-20 12:03:32 -04:00
2021-04-20 12:03:32 -04:00
2021-05-10 18:15:50 +02:00
2021-05-29 19:54:48 -04:00
2021-04-21 12:49:07 -04:00
2021-05-29 19:54:48 -04:00
2021-05-29 19:54:48 -04:00
2021-06-03 15:49:41 -04:00
2021-05-29 19:54:48 -04:00
2021-04-20 12:03:32 -04:00
2021-04-20 12:03:32 -04:00
2021-05-29 19:54:48 -04:00
2021-06-02 11:46:17 -04:00
2021-04-20 12:03:32 -04:00
2021-05-29 19:54:48 -04:00
2021-04-20 12:03:32 -04:00
2021-05-31 11:59:40 -04:00
2021-06-04 09:37:12 -07:00
2021-05-29 19:54:48 -04:00
2021-05-29 19:54:48 -04:00
2021-05-29 19:54:48 -04:00
2021-05-18 19:56:30 -04:00
2021-05-29 19:54:48 -04:00
2021-05-29 19:54:48 -04:00
2021-05-29 19:54:48 -04:00
2021-05-29 19:54:48 -04:00
2021-06-04 09:38:49 -07:00
2021-05-29 19:54:48 -04:00
2021-06-04 09:37:12 -07:00
2021-05-11 12:23:55 -04:00
2021-05-29 19:54:48 -04:00
2021-05-18 19:56:30 -04:00
2021-04-20 12:03:32 -04:00
2021-05-29 19:54:48 -04:00
2021-05-18 19:56:30 -04:00
2021-05-29 19:54:48 -04:00
2021-04-20 12:03:32 -04:00
2021-04-20 12:03:32 -04:00
2021-04-20 12:03:32 -04:00
2021-05-29 19:54:48 -04:00
2021-04-20 12:03:32 -04:00
2021-04-20 12:03:32 -04:00
2021-04-20 12:03:32 -04:00
2021-05-29 19:54:48 -04:00
2021-05-29 19:54:48 -04:00
2021-05-29 19:54:48 -04:00
2021-04-20 12:03:32 -04:00
2021-05-29 19:54:48 -04:00
2021-04-20 12:03:32 -04:00
2021-04-20 12:03:32 -04:00
2021-05-29 19:54:48 -04:00
2021-05-29 19:54:48 -04:00
2021-05-18 19:56:30 -04:00
2021-05-29 19:54:48 -04:00
2021-05-29 19:54:48 -04:00
2021-05-29 19:54:48 -04:00
2021-05-29 19:54:48 -04:00
2021-05-29 19:54:48 -04:00
2021-06-05 12:29:36 -04:00
2021-05-29 19:54:48 -04:00
2021-05-29 19:54:48 -04:00
2021-05-26 17:54:33 +02:00
2021-04-20 12:03:32 -04:00
2021-04-20 12:03:32 -04:00