This is an archive of the discontinued LLVM Phabricator instance.

[flang] Do not dereference an array out of bound just to take its address
ClosedPublic

Authored by serge-sans-paille on Sep 18 2020, 2:06 AM.

Details

Summary

This is UB by the standard, and caught by the libstdc++ asserts

Diff Detail

Event Timeline

serge-sans-paille requested review of this revision.Sep 18 2020, 2:06 AM
klausler accepted this revision.Sep 18 2020, 9:42 AM

LGTM; thanks for fixing this.

This revision is now accepted and ready to land.Sep 18 2020, 9:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 21 2020, 3:08 AM