[all-commits] [llvm/llvm-project] 2e0873: [flang] Fix check for PRIVATE override of PUBLIC t...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Mar 27 15:52:26 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e0873c75ef8016a10e2052a1ce21e4fa5974cf3
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-03-27 (Mon, 27 Mar 2023)

  Changed paths:
    M flang/lib/Semantics/check-declarations.cpp
    M flang/test/Semantics/bindings01.f90

  Log Message:
  [flang] Fix check for PRIVATE override of PUBLIC t.b.p.

A PRIVATE procedure binding in a derived type extension may not
be an override of a PUBLIC procedure binding.  Declaration checking
for this case was working only in the presence of an explicit
PUBLIC accessibility attribute, when it should be checking for the
absence of a PRIVATE accessibility attribute.

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

More information about the All-commits mailing list