Wrong results with ASSOCIATE block

· Fortran Lang Discourse · May 3, 2026, 6:19 p.m.
Summary
The blog post discusses an unexpected behavior with the ASSOCIATE block and imaginary number selectors in Fortran, showcasing examples where the output does not match the expected results. The author questions whether this is a bug in the gfortran compiler or a misunderstanding of the language semantics regarding complex numbers.
AUTHOR
Sponsored
Zulip logo Zulip
Organized team chat for people who take work seriously. Topic-based threading keeps conversations focused.
Try Zulip
Become a sponsor →