Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error with clang 19 in the test framework #251

Open
lnksz opened this issue Feb 5, 2025 · 0 comments
Open

Compilation error with clang 19 in the test framework #251

lnksz opened this issue Feb 5, 2025 · 0 comments

Comments

@lnksz
Copy link

lnksz commented Feb 5, 2025

Generic issue, regarding (3) testframework

on dev after a clean clone:

# at EPIJudge/epi_judge_cpp
$ make
g++ -std=c++14 -pthread -Werror -Wno-unused-variable -Wno-sign-compare -g -O0 -o cpp_build/snake_string snake_string.cc
In file included from snake_string.cc:3:
In file included from ./test_framework/generic_test.h:12:
In file included from ./test_framework/fmt_print.h:9:
./test_framework/serialization_traits.h:221:22: error: implicit conversion from 'type' (aka 'int') to 'const float' changes value from 2147483647 to 2147483648 [-Werror,-Wimplicit-const-int-float-conversion]
  220 |     return {static_cast<int>(std::min<serialization_type>(
      |                              ~~~
  221 |         std::abs(x), std::numeric_limits<int>::max()))};
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [Makefile:1862: cpp_build/snake_string] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant