[all-commits] [llvm/llvm-project] 016557: [flang] Better error handling for PDT constant exp...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Mar 10 16:49:15 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 016557fab24ae4d99ab6aa98433cce23f2d03ac2
      https://github.com/llvm/llvm-project/commit/016557fab24ae4d99ab6aa98433cce23f2d03ac2
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2025-03-10 (Mon, 10 Mar 2025)

  Changed paths:
    M flang/lib/Evaluate/check-expression.cpp
    M flang/lib/Semantics/type.cpp
    A flang/test/Semantics/pdt04.f90
    M flang/test/Semantics/resolve105.f90

  Log Message:
  -----------
  [flang] Better error handling for PDT constant expression (#130637)

We currently don't consider an integer division to be a constant
expression unless its divisor is known and nonzero. This produces a
weird result in the linked test; do better.

Fixes https://github.com/llvm/llvm-project/issues/130534.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list