This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix crash from bug#63099 (gfortran/regression/oldstyle_3.f90)
ClosedPublic

Authored by klausler on Jun 5 2023, 11:36 AM.

Details

Summary

In InitElement() in flang/lib/Semantics/data-to-inits.cpp, don't
assume that values_.Location() can be called until after it has been
verified that values_.IsAtEnd() is not true.

Fixes https://github.com/llvm/llvm-project/issues/63099.

Diff Detail

Event Timeline

klausler created this revision.Jun 5 2023, 11:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 5 2023, 11:36 AM
klausler requested review of this revision.Jun 5 2023, 11:36 AM
vdonaldson accepted this revision.Jun 5 2023, 11:49 AM
This revision is now accepted and ready to land.Jun 5 2023, 11:49 AM
This revision was landed with ongoing or failed builds.Jun 5 2023, 12:28 PM
This revision was automatically updated to reflect the committed changes.