[libcxx-commits] [libcxx] [libc++] add floating point type check for uniform real distrubtion (PR #70564)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Nov 2 07:59:36 PDT 2023


AdvenamTacet wrote:

@NhatNguyen1810 you can see error report by clicking details next to the buildkite and then on the job which failed. It looks like your code works with GCC only. You can find details here: https://buildkite.com/llvm-project/libcxx-ci/builds/31338#018b8dda-3da3-4049-af36-d3bbe1bf054c

`FAIL: llvm-libc++-shared.cfg.in :: libcxx/random/random.uniform.real/traits_mismatch.verify.cpp (1664 of 9610)` - that's the test which failed.

```bash
# .---command stderr------------
--
  | # \| error: 'expected-error' diagnostics seen but not expected:
  | # \|   File /home/libcxx-builder/.buildkite-agent/builds/google-libcxx-builder-6be6c9a4344c-1/llvm-project/libcxx-ci/build/generic-cxx26/include/c++/v1/__random/uniform_real_distribution.h Line 31: static assertion failed due to requirement 'is_floating_point<int>::value': result_type must be floating type
  | # \|   File /home/libcxx-builder/.buildkite-agent/builds/google-libcxx-builder-6be6c9a4344c-1/llvm-project/libcxx-ci/libcxx/test/libcxx/random/random.uniform.real/traits_mismatch.verify.cpp Line 20: cannot find end ('}}') of expected string
  | # \| 2 errors generated.
  | # `-----------------------------
```

https://github.com/llvm/llvm-project/pull/70564


More information about the libcxx-commits mailing list