[flang] Use structureComponent.component.symbol directly instead of getting
authorSteve Scalpone <sscalpone@nvidia.com>
Mon, 8 Apr 2019 07:26:10 +0000 (00:26 -0700)
committerSteve Scalpone <sscalpone@nvidia.com>
Mon, 8 Apr 2019 07:26:10 +0000 (00:26 -0700)
commit9fbc37abf70f518ed9332409621ec5fdba19f099
tree022b3a09a4a2aeffad8d5c7c3f6bc94ba5fa1285
parent37a53df82c0fbce5f8374b99924c3ab80cb1ef77
[flang] Use structureComponent.component.symbol directly instead of getting
the symbol from the result of expression analysis.  (This opens the
door to moving structure component semantic checking to expression
analysis.)

Also, improve error messages, remove unused include files, and add
copyright headers to test files.

Original-commit: flang-compiler/f18@17780c40d7380db9760e972dcc52724838cd89d8
Reviewed-on: https://github.com/flang-compiler/f18/pull/388
flang/lib/semantics/check-nullify.cc
flang/lib/semantics/expression.cc
flang/lib/semantics/expression.h
flang/test/semantics/nullify01.f90
flang/test/semantics/nullify02.f90