[PATCH] D81490: [flang] Fix bug resolving type in type definition

Tim Keith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 9 11:33:02 PDT 2020


tskeith created this revision.
tskeith added reviewers: klausler, PeteSteinfeld, sscalpone.
tskeith added a project: Flang.
Herald added a reviewer: jdoerfert.
Herald added a reviewer: DavidTruby.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
tskeith updated this revision to Diff 269614.
tskeith added a comment.
tskeith abandoned this revision.

Fix typo


When we encountered a type name in a derived type definition, we were
sometimes finding a component of that name rather than the type from
the enclosing scope. Fix this by introducing `NonDerivedTypeScope()` to
start the search in the right scope.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D81490

Files:
  flang/test/Semantics/resolve92.f90


Index: flang/test/Semantics/resolve92.f90
===================================================================
--- flang/test/Semantics/resolve92.f90
+++ flang/test/Semantics/resolve92.f90
@@ -6,7 +6,7 @@
     integer :: n
   end type
   type t2
-    ! t and t2 must be resoved to types in m, not components in t2
+    ! t and t2 must be resolved to types in m, not components in t2
     type(t) :: t(10) = t(1)
     type(t) :: x = t(1)
     integer :: t2


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81490.269614.patch
Type: text/x-patch
Size: 455 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200609/2bb1bdf8/attachment.bin>


More information about the llvm-commits mailing list