[flang] Fix problems in PR 109 when compiling with clang.
authorTim Keith <tkeith@nvidia.com>
Fri, 22 Jun 2018 21:08:04 +0000 (14:08 -0700)
committerTim Keith <tkeith@nvidia.com>
Fri, 22 Jun 2018 21:08:04 +0000 (14:08 -0700)
commitc7eb38530cabc5fdb44ee32560f38592cb9e7a78
treee70285da7daee8afb928ed1027efe16725d4d36e
parent576711f4ecbc610a3399b43a18648f7a1b425e4f
[flang] Fix problems in PR 109 when compiling with clang.

This gets the code base back to compiling cleanly with clang after
pull request 109.

There were two overloadings of `Post(const parser::DeclarationTypeSpec::Type &)`.
The one in DeclarationVisitor needed to call the one in DeclTypeSpecVisitor.
This was fixed by introducing a new function, SetDerivedDeclTypeSpec, to do
the equivalent thing.

Original-commit: flang-compiler/f18@81e447bf4ec076f8fa823c0c61c9dd72e1f62fe4
Reviewed-on: https://github.com/flang-compiler/f18/pull/110
flang/lib/semantics/resolve-names.cc
flang/lib/semantics/symbol.h
flang/lib/semantics/type.h