[all-commits] [llvm/llvm-project] 0c64cb: [flang] Fix a crash when an array constructor cont...

Pete Steinfeld via All-commits all-commits at lists.llvm.org
Tue Jul 14 15:23:09 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0c64cb6d08964b576cd95f5532ea4016fcd27943
      https://github.com/llvm/llvm-project/commit/0c64cb6d08964b576cd95f5532ea4016fcd27943
  Author: Pete Steinfeld <psteinfeld at nvidia.com>
  Date:   2020-07-14 (Tue, 14 Jul 2020)

  Changed paths:
    M flang/lib/Semantics/expression.cpp
    M flang/test/Semantics/resolve70.f90

  Log Message:
  -----------
  [flang] Fix a crash when an array constructor contains an unlimited polymorphic value

Summary:
C7113 States that "An ac-value shall not be unlimited polymorphic."  We failed
to detect this situation which resulted in a crash when trying to get the
underlying derived type specification of the unlimited polymorphic value.

I added code to avoid the crash, code to emit an error message, and a test.

Reviewers: klausler, tskeith, DavidTruby

Subscribers: llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list