[flang][openacc] Avoid crash when collapse loop nest has extra directive (#73166)
commit575c9bf940e584d4928272ce8a87fe71cca50840
authorValentin Clement (バレンタイン クレメン) <clementval@gmail.com>
Wed, 22 Nov 2023 21:01:12 +0000 (22 13:01 -0800)
committerGitHub <noreply@github.com>
Wed, 22 Nov 2023 21:01:12 +0000 (22 13:01 -0800)
tree7e311a6427d629813e5747e09d0f86528e14e7e5
parent53f912480f7fab5ee903d76fd5c7aed5df88eea4
[flang][openacc] Avoid crash when collapse loop nest has extra directive (#73166)

The compiler was crashing when the collapse loop nest could not be
retrieved because of extra acc loop directive inside it.
flang/lib/Semantics/resolve-directives.cpp
flang/test/Semantics/OpenACC/acc-loop.f90