-
Notifications
You must be signed in to change notification settings - Fork 143
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
GCC 14 warning when reading json #1561
Comments
Thanks for bringing this up and sharing the compiler explorer example. I'm looking into it now. |
I added a test case for this in #1562. However, this is passing GCC14, which is confusing to me because it uses I can understand why GCC might think this line of code is not safe: |
I did not quite understand your remarks regarding the example. You have added regarding the pipeline, correct me if im wrong but it looks like Werror is only set for Clang and there is no O2 optimization Line 27 in 8c2eb57
|
Ah, thanks for pointing that out. I'll add those flags to test GCC.
My bad again. You're right the |
The fact that this bug doesn't exist with |
yeah it is most likely gcc bug. I did tinker around with debuger (although not x86) and it makes no sense |
it also appears with Os and Oz |
https://godbolt.org/z/6TG8YzqTv |
gcc throws
maybe-uninitialized
warning when read_jmespath is used.issue only occures when:
.error_on_missing_keys = 1null_terminated=0https://godbolt.org/z/zacecnY71
from the first glance it looks like a false positive but i'm struggling to understand why this is even happening...
The text was updated successfully, but these errors were encountered: