[all-commits] [llvm/llvm-project] fac845: [flang] Fix an assert on duplicate initializations

Pete Steinfeld via All-commits all-commits at lists.llvm.org
Thu Jul 30 12:59:04 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: fac84536bcb9fbca2b3517ca83d382329d0e6c55
      https://github.com/llvm/llvm-project/commit/fac84536bcb9fbca2b3517ca83d382329d0e6c55
  Author: Peter Steinfeld <psteinfeld at nvidia.com>
  Date:   2020-07-30 (Thu, 30 Jul 2020)

  Changed paths:
    M flang/lib/Semantics/resolve-names.cpp
    M flang/test/Semantics/resolve91.f90

  Log Message:
  -----------
  [flang] Fix an assert on duplicate initializations

When declaring the same variable twice with an initialization, we were failing
an internal check.  I fixed this by checking to see if the associated symbol
already had an error.

I added tests for pointer and non-pointer initialization of duplicate names.

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




More information about the All-commits mailing list