[all-commits] [llvm/llvm-project] 2c662f: [flang] Fix bug with intrinsic in type declaration...

Tim Keith via All-commits all-commits at lists.llvm.org
Wed Jul 29 07:23:55 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2c662f3d3d957365ad86f35eee0bea05e4cf0188
      https://github.com/llvm/llvm-project/commit/2c662f3d3d957365ad86f35eee0bea05e4cf0188
  Author: Tim Keith <tkeith at nvidia.com>
  Date:   2020-07-29 (Wed, 29 Jul 2020)

  Changed paths:
    M flang/include/flang/Semantics/symbol.h
    M flang/lib/Semantics/compute-offsets.cpp
    M flang/lib/Semantics/resolve-names.cpp
    A flang/test/Semantics/symbol18.f90

  Log Message:
  -----------
  [flang] Fix bug with intrinsic in type declaration stmt

When an instrinsic function is declared in a type declaration statement
we need to set the INTRINSIC attribute and (per 8.2(3)) ignore the
specified type.

To simplify the check, add IsIntrinsic utility to BaseVisitor.

Also, intrinsics and external procedures were getting assigned a size
and offset and they shouldn't be.

Differential Revision: https://reviews.llvm.org/D84702




More information about the All-commits mailing list