[all-commits] [llvm/llvm-project] 2c27d5: [flang] Fix internal error with DATA-statement sty...

Daniil Dudkin via All-commits all-commits at lists.llvm.org
Fri May 6 08:22:34 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2c27d5b36a55c75a33a2a97198d0f0cd1d3d42bf
      https://github.com/llvm/llvm-project/commit/2c27d5b36a55c75a33a2a97198d0f0cd1d3d42bf
  Author: Daniil Dudkin <d.dudkin at partner.samsung.com>
  Date:   2022-05-06 (Fri, 06 May 2022)

  Changed paths:
    M flang/lib/Semantics/data-to-inits.cpp
    M flang/lib/Semantics/resolve-names.cpp
    A flang/test/Semantics/resolve111.f90

  Log Message:
  -----------
  [flang] Fix internal error with DATA-statement style initializers

The code below causes flang to crash with an exception.
After fixing the crash flang with an internal error "no symbol found for 'bar'"
This change fixes all the issues.

  program name
    implicit none
    integer, parameter :: bar = 1
    integer foo(bar) /bar*2/
  end program name

Reviewed By: kiranchandramohan, klausler

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




More information about the All-commits mailing list