[all-commits] [llvm/llvm-project] 08c364: [flang] Improve error message on bad complex liter...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Jan 27 09:00:32 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 08c364280a790cb2a80fff86beb5ea69782ce667
      https://github.com/llvm/llvm-project/commit/08c364280a790cb2a80fff86beb5ea69782ce667
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2025-01-27 (Mon, 27 Jan 2025)

  Changed paths:
    M flang/lib/Evaluate/tools.cpp
    M flang/test/Semantics/complex01.f90

  Log Message:
  -----------
  [flang] Improve error message on bad complex literal. (#124331)

A complex literal constant can have one BOZ component, since the type
and value of the literal can be determined by converting the BOZ value
to the type of the other component. But a complex literal constant with
two BOZ components doesn't have a well-defined type. The error message
was confusing in the case; emit a better one.

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



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