[all-commits] [llvm/llvm-project] a93d84: [flang] Don't warn on (0., 0.)**(nonzero noninteger...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Jun 30 10:21:58 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a93d843ab31ac66004d939396398b798b3d013d1
      https://github.com/llvm/llvm-project/commit/a93d843ab31ac66004d939396398b798b3d013d1
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2025-06-30 (Mon, 30 Jun 2025)

  Changed paths:
    M flang/include/flang/Evaluate/complex.h
    M flang/lib/Evaluate/fold-implementation.h
    A flang/test/Semantics/bug1046.f90

  Log Message:
  -----------
  [flang] Don't warn on (0.,0.)**(nonzero noninteger) (#145179)

Folding hands complex exponentiations with constant arguments off to the
native libm, and on a least on host, this can produce spurious warnings
about division by zero and invalid arguments. Handle the case of a zero
base specially to avoid that, and also emit better warnings for the
undefined 0.**0 and (0.,0.)**0 cases. And add a test for these warnings
and the existing related ones.



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