[all-commits] [llvm/llvm-project] cff7fa: [flang] Catch repeated BIND(C) attribute specifica...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Feb 13 18:07:37 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cff7fad1544a299f2509ccd845065cbb3a531cd1
      https://github.com/llvm/llvm-project/commit/cff7fad1544a299f2509ccd845065cbb3a531cd1
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-02-13 (Mon, 13 Feb 2023)

  Changed paths:
    M flang/lib/Semantics/resolve-names.cpp
    M flang/test/Semantics/bind-c02.f90
    M flang/test/Semantics/declarations03.f90

  Log Message:
  -----------
  [flang] Catch repeated BIND(C) attribute specifications for a symbol

A BIND(C) attribute statement or type-declaration-stmt attribute, just
like most attributes, can only appear once.  Name resolution was excluding
the BIND(C) attribute from its check for duplicated attributes, but I
don't see a reason that remains to do so.

Differential Revision: https://reviews.llvm.org/D143834




More information about the All-commits mailing list