[flang] Implement semantics for computed GOTO. Note that a PGI extension
authorSteve Scalpone <sscalpone@nvidia.com>
Wed, 27 Mar 2019 22:44:17 +0000 (15:44 -0700)
committerSteve Scalpone <sscalpone@nvidia.com>
Wed, 27 Mar 2019 22:44:17 +0000 (15:44 -0700)
commit7024515c7d94598d8464d7478ac3a58d9443df76
tree87d59737fde61a626db0dd0bb615af29c36abacf
parentd5c41f106173213bc01f5ba27f6898f34c2dc0f9
[flang] Implement semantics for computed GOTO.  Note that a PGI extension
will implicitly convert a float to integer (and issue a warning).
This commit does not implement that extension.

Original-commit: flang-compiler/f18@b85755f26fef767850572ef5d3deea87258d87a7
Reviewed-on: https://github.com/flang-compiler/f18/pull/360
Tree-same-pre-rewrite: false
flang/lib/semantics/CMakeLists.txt
flang/lib/semantics/check-computed-goto.cc [new file with mode: 0644]
flang/lib/semantics/check-computed-goto.h [new file with mode: 0644]
flang/lib/semantics/semantics.cc
flang/test/semantics/CMakeLists.txt
flang/test/semantics/computed-goto01.f90 [new file with mode: 0644]
flang/test/semantics/computed-goto02.f90 [new file with mode: 0644]