[flang] Non-fatal error for repeated access spec
authorTim Keith <tkeith@nvidia.com>
Wed, 25 Apr 2018 17:46:39 +0000 (10:46 -0700)
committerTim Keith <tkeith@nvidia.com>
Wed, 25 Apr 2018 17:46:39 +0000 (10:46 -0700)
commitcb37c3625a87da330d6df9d401e7ebd12b540b5f
tree2ad9efc2c8450aea4b86bfb9a183299dc75317d2
parent94fa0fd890ce7c9c8b53ca48f4ac3b8bd4236f94
[flang] Non-fatal error for repeated access spec

When an access statement repeats the same attribute, make it a non-fatal
diagnostic. Also, include the previous specification in the message.

resolve11.f90 now illustrates both cases, fatal and non-fatal.

Original-commit: flang-compiler/f18@1f567c740a8ec300d247f63a69b15ca820e757a3
Reviewed-on: https://github.com/flang-compiler/f18/pull/70
Tree-same-pre-rewrite: false
flang/lib/semantics/resolve-names.cc
flang/test/semantics/resolve11.f90