[flang] When computing the stack of scopes, a label on the first statement
authorEric <eschweitz@nvidia.com>
Sat, 23 Mar 2019 02:20:16 +0000 (19:20 -0700)
committerEric <eschweitz@nvidia.com>
Sat, 23 Mar 2019 02:29:00 +0000 (19:29 -0700)
commitb027f6cf2b566dc85afd7fb4eea38f49ae651290
treef22f43a6995313ddaad8b2820ef9145fc7ee492b
parent746e9c4805776896cc62fc9160dd172cd1eb9395
[flang] When computing the stack of scopes, a label on the first statement
that begins a construct should be considered as in the parent scope
rather that within the scope of the construct that is being entered.

Original-commit: flang-compiler/f18@93da3538bcd31b165535dadefe4d67ee81a42ad9
Reviewed-on: https://github.com/flang-compiler/f18/pull/353
flang/lib/semantics/resolve-labels.cc