-
-
Notifications
You must be signed in to change notification settings - Fork 408
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
test_intrusive_list.cpp fails to compile (-Werror=array-bounds) due to subscript -1 is out of bounds #649
Comments
I think it may be due to that fact that iterators in Changing the iterator constructor to take a pointer rather than a reference is simple. |
Were you able to try the fix? |
Unfortunately these changes did not fix the issue. Build log with the above file: https://gitlab.com/-/snippets/2489763/raw |
My experiments so far show that the issue is down to the value_type multiple inheriting from two link_type base classes. The error occurs when the value_type is up-cast from one of the base types. |
Currently, the test node is define as follows.
If the tests are modified so that it is defined as below, then the error disappears. |
I've found the issue. |
…ds-test-failure # Conflicts: # include/etl/intrusive_forward_list.h # include/etl/intrusive_list.h # include/etl/optional.h # test/test_optional.cpp # test/vs2019/etl.vcxproj.filters
Fixed in 20.35.13 |
While packaging this for Gentoo, I enabled the test suite. Unfortunately the tests do not compile with the above error. Can someone with more insight into the test suite take a look at this? Compiler is
gcc (Gentoo 11.3.1_p20221209 p3) 11.3.1 20221209
.Please note that this error repeats several times for the file, I copied just the first occurrence.
The text was updated successfully, but these errors were encountered: