[libcxx-commits] [PATCH] D116023: [libc++][ranges] Implement `uninitialized_copy{, _n}` and `uninitialized_move{, _n}`.

Vlad Vereschaka via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jan 11 21:31:25 PST 2022


vvereschaka added a comment.

@var-const, @gulfem

The `libc++::in_out_result.pass.cpp` test gets failed to build with the following error:

  C:/buildbot/as-builder-1/x-armv7l/build/include/c++/v1\__algorithm/in_out_result.h:36:13: error: non-constant-expression cannot be narrowed from type 'int' to 'double' in initializer list [-Wc++11-narrowing]
      return {in, out};
              ^~
  C:\buildbot\as-builder-1\x-armv7l\llvm-project\libcxx\test\std\algorithms\algorithms.results\in_out_result.pass.cpp:49:50: note: in instantiation of function template specialization 'std::ranges::in_out_result<int, bool>::operator in_out_result<double, char>' requested here
      std::ranges::in_out_result<double, char> y = x;
                                                   ^
  C:/buildbot/as-builder-1/x-armv7l/build/include/c++/v1\__algorithm/in_out_result.h:36:13: note: insert an explicit cast to silence this issue
      return {in, out};
              ^~
              static_cast<double>( )
  1 error generated.
  error: command failed with exit status: 1

I suspect the same problem for Fuchsia also.

- https://lab.llvm.org/buildbot/#/builders/60/builds/6143
- https://lab.llvm.org/buildbot/#/builders/119/builds/7169


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116023/new/

https://reviews.llvm.org/D116023



More information about the libcxx-commits mailing list