llvm/flang/lib/semantics
Tim Keith d7d69474c8 [flang] Fix bug recognizing derived type constructor call
A ProcedureDesignator is a derived type constructor call if the name
resolves to a derived type. We need to recognize it as such and not
report an error. It may be in another derived type so we have to call
FindSymbol() first to find the derived type.

Most of the diffs are due to `symbol` changing from a reference to a
pointer.

In this example we were reporting an error on the first `t1()` and
resolving the second as an external function call.
```
module m
  type :: t1
  end type
  type(t1) :: x = t1()
  type t2
    type(t1) :: y = t1()
  end type
end module
```

Original-commit: flang-compiler/f18@717b22ca2b
Reviewed-on: https://github.com/flang-compiler/f18/pull/116
2018-07-09 15:25:49 -07:00
..
attr.cc [flang] Rearrange some facilities into a new lib/common. 2018-06-18 11:05:17 -07:00
attr.h [flang] Rearrange some facilities into a new lib/common. 2018-06-18 11:05:17 -07:00
CMakeLists.txt [flang] Support unparse with symbol annotations. 2018-06-26 15:01:42 -07:00
dump-parse-tree.h [flang] Rearrange some facilities into a new lib/common. 2018-06-18 11:05:17 -07:00
resolve-names.cc [flang] Fix bug recognizing derived type constructor call 2018-07-09 15:25:49 -07:00
resolve-names.h [flang] Make include guards consistent. 2018-05-01 14:07:52 -07:00
rewrite-parse-tree.cc [flang] Name resolution for derived types. 2018-06-22 08:21:19 -07:00
rewrite-parse-tree.h [flang] Make include guards consistent. 2018-05-01 14:07:52 -07:00
scope.cc [flang] Name resolution for derived types. 2018-06-22 08:21:19 -07:00
scope.h [flang] Name resolution for derived types. 2018-06-22 08:21:19 -07:00
symbol.cc [flang] Support unparse with symbol annotations. 2018-06-26 15:01:42 -07:00
symbol.h [flang] Support unparse with symbol annotations. 2018-06-26 15:01:42 -07:00
type.cc [flang] clean up clang warnings from master 2018-06-22 14:59:25 -07:00
type.h [flang] clean up clang warnings from master 2018-06-22 14:59:25 -07:00
unparse-with-symbols.cc [flang] Support unparse with symbol annotations. 2018-06-26 15:01:42 -07:00
unparse-with-symbols.h [flang] Support unparse with symbol annotations. 2018-06-26 15:01:42 -07:00