[all-commits] [llvm/llvm-project] c66645: [flang] Catch more initialization errors (#77850)

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Jan 15 13:02:16 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c66645da55b9f4c13f4a612392dcc5a84b086ba7
      https://github.com/llvm/llvm-project/commit/c66645da55b9f4c13f4a612392dcc5a84b086ba7
  Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
  Date:   2024-01-15 (Mon, 15 Jan 2024)

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

  Log Message:
  -----------
  [flang] Catch more initialization errors (#77850)

[flang] Catch more initialization errors
    
    Diagnose some error cases related to initialization that are
slipping past semantic checking: don't allow multiple initializations
    of the same symbol, and don't allow an object that was initialized
    as a scalar to become an array afterward.
    
Fixes llvm-test-suite/Fortran/gfortran/regression/initialization_17.f90.




More information about the All-commits mailing list