Fix a number of bugs in __val_expr's subset operator[].
authorEric Fiselier <eric@efcs.ca>
Tue, 2 Apr 2019 08:05:23 +0000 (08:05 +0000)
committerEric Fiselier <eric@efcs.ca>
Tue, 2 Apr 2019 08:05:23 +0000 (08:05 +0000)
commit0657197588ffea508426de1e0c2afa65e76e24fa
treeea0b248815ce3257e80890880e821a3612524a50
parentb669fea42f5c2a5b203c3f0da2a6b04b90bfd5a7
Fix a number of bugs in __val_expr's subset operator[].

The current definitions were entirely broken. They didn't call any
existing constructor and the forgot to friend the expression types they
were trying to construct.

llvm-svn: 357453
libcxx/include/valarray
libcxx/test/std/numerics/numarray/template.valarray/valarray.sub/gslice_const.pass.cpp
libcxx/test/std/numerics/numarray/template.valarray/valarray.sub/gslice_non_const.pass.cpp
libcxx/test/std/numerics/numarray/template.valarray/valarray.sub/indirect_array_const.pass.cpp
libcxx/test/std/numerics/numarray/template.valarray/valarray.sub/indirect_array_non_const.pass.cpp
libcxx/test/std/numerics/numarray/template.valarray/valarray.sub/slice_const.pass.cpp
libcxx/test/std/numerics/numarray/template.valarray/valarray.sub/slice_non_const.pass.cpp
libcxx/test/std/numerics/numarray/template.valarray/valarray.sub/valarray_bool_const.pass.cpp
libcxx/test/std/numerics/numarray/template.valarray/valarray.sub/valarray_bool_non_const.pass.cpp