Do not dereference an array out of bound just to take its address
authorserge-sans-paille <sguelton@redhat.com>
Fri, 18 Sep 2020 09:02:15 +0000 (11:02 +0200)
committerserge-sans-paille <sguelton@redhat.com>
Mon, 21 Sep 2020 10:08:30 +0000 (12:08 +0200)
commit2a774411174466010c69a2460c81b8d0d4f7165f
tree62aea491aae771c1bc7cc238b1c44dc2f4cdc270
parent095f6fbbd7b61af205d761f6951a869ec4a61722
Do not dereference an array out of bound just to take its address

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

Differential Revision: https://reviews.llvm.org/D87892
flang/lib/Parser/token-sequence.cpp