[flang] Fix errors in tests and predefined modules
authorTim Keith <tkeith@nvidia.com>
Tue, 6 Aug 2019 21:14:33 +0000 (14:14 -0700)
committerTim Keith <tkeith@nvidia.com>
Wed, 7 Aug 2019 17:51:35 +0000 (10:51 -0700)
commit050a921aaf0e82f9fbfc98edb2fe992b7b93556c
tree469eaa949106ba969c7b64bce095f4da5b827ee1
parenta5f6fa6b2e8fd7884d7c4b05705fef76ef72961d
[flang] Fix errors in tests and predefined modules

There were many places in tests and predefined modules that had
incorrect code that we weren't detecting until now.

Most of the problems were deferred-shape arrays that should have
been implied-shape. For example:
`real, parameter :: a(:) = [1.0, 2.0]`
should have `(*)` rather than `(:)`.

There were also a few places with deferred-shape arrays that were
not allocatable/pointer or explicit-shape ones that were.

Original-commit: flang-compiler/f18@0a959ce1d81dd2e54b72886db699b12c7ad59d88
Reviewed-on: https://github.com/flang-compiler/f18/pull/630
16 files changed:
flang/module/ieee_exceptions.f90
flang/module/iso_fortran_env.f90
flang/test/evaluate/folding05.f90
flang/test/evaluate/folding06.f90
flang/test/evaluate/folding08.f90
flang/test/semantics/allocate01.f90
flang/test/semantics/allocate12.f90
flang/test/semantics/modfile14.f90
flang/test/semantics/modfile18.f90
flang/test/semantics/modfile24.f90
flang/test/semantics/modfile25.f90
flang/test/semantics/modfile26.f90
flang/test/semantics/modfile27.f90
flang/test/semantics/modfile28.f90
flang/test/semantics/resolve37.f90
flang/test/semantics/stop01.f90