edit: solved #2855
Unanswered
BenWibking
asked this question in
Q&A
edit: solved
#2855
Replies: 1 comment 2 replies
-
It was undefined behavior after all. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have either discovered a compiler bug in gcc 10, 11, and 12, or there is very subtle undefined behavior in my code that is nonetheless works as expected when compiled by gcc 8.5, gcc 9.5, nvcc, and clang (with any optimization flags) or with gcc 10, 11, 12 when compiled at optimization levels -O0. No asserts or warnings (except for unrecognized pragmas) are triggered with any compiler when building in debug mode.
Have any similar issues been seen with other AMReX codes? What is the best way to report this to the gcc developers (or rule out undefined behavior in my code)?
The issue is reproducible from this PR: quokka-astro/quokka#62
Beta Was this translation helpful? Give feedback.
All reactions