[all-commits] [llvm/llvm-project] 7ea786: [flang] Improve error message output (#102324)

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Aug 8 11:09:11 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ea78643fe1577afb60bfc670357a79be53a31e8
      https://github.com/llvm/llvm-project/commit/7ea78643fe1577afb60bfc670357a79be53a31e8
  Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
  Date:   2024-08-08 (Thu, 08 Aug 2024)

  Changed paths:
    M flang/lib/Evaluate/check-expression.cpp
    M flang/test/Semantics/structconst02.f90

  Log Message:
  -----------
  [flang] Improve error message output (#102324)

When a local character variable with non-constant length has an
initializer, it's an error in a couple of ways (SAVE variable with
unknown size, static initializer that isn't constant due to conversion
to an unknown length). The error that f18 reports is the latter, but the
message contains a formatted representation of the initialization
expression that exposes a non-Fortran %SET_LENGTH() operation. Print the
original expression in the message instead.



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