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

is_convertible_without_narrowing static assert is failing in some cases with GCC v7.3.1 #136

Open
lydia-at-amazon opened this issue Aug 22, 2024 · 0 comments
Assignees

Comments

@lydia-at-amazon
Copy link

When building with GCC v7.3.1, a number of static asserts in type_traits_ext.hpp and test_type_traits_ext.cpp fail:

include/cetl/type_traits_ext.hpp:125:1: error: static assertion failed: self-test failure
static_assert(is_convertible_without_narrowing<int, long long>::value, "self-test failure");
^~~~~~~~~~~~~

cetlvast/suites/unittest/test_type_traits_ext.cpp:53:1: error: static assertion failed
static_assert(is_convertible_without_narrowing<int, long long>::value, "");
^~~~~~~~~~~~~

cetlvast/suites/unittest/test_type_traits_ext.cpp:56:1: error: static assertion failed
static_assert(is_convertible_without_narrowing<float, long double>::value, "");
^~~~~~~~~~~~~

cetlvast/suites/unittest/test_type_traits_ext.cpp:71:1: error: static assertion failed
static_assert(!is_convertible_without_narrowing<long, foo_val>::value, "");
^~~~~~~~~~~~~

cetlvast/suites/unittest/test_type_traits_ext.cpp:73:1: error: static assertion failed
static_assert(!is_convertible_without_narrowing<long, foo_ref>::value, "");
^~~~~~~~~~~~~

cetlvast/suites/unittest/test_type_traits_ext.cpp:99:1: error: static assertion failed
static_assert(
^~~~~~~~~~~~~ 
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

2 participants