llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
26.99k stars 11.06k forks source link

[Flang] Missing diagnostic on duplicate global identifiers #94006

Open DanielCChen opened 1 month ago

DanielCChen commented 1 month ago

Consider the following test case:

module m
  bind(c, name='xxxYY') p1
  procedure(real) xxxyy
end

The binding label xxxYY is a global identifier. It is also used as an global identifier for an external procedure. It should be diagnosed.

llvmbot commented 1 month ago

@llvm/issue-subscribers-bug

Author: Daniel Chen (DanielCChen)

Consider the following test case: ``` module m bind(c, name='xxxYY') p1 procedure(real) xxxyy end ``` The binding label `xxxYY` is a global identifier. It is also used as an global identifier for an external procedure. It should be diagnosed.
llvmbot commented 1 month ago

@llvm/issue-subscribers-flang-frontend

Author: Daniel Chen (DanielCChen)

Consider the following test case: ``` module m bind(c, name='xxxYY') p1 procedure(real) xxxyy end ``` The binding label `xxxYY` is a global identifier. It is also used as an global identifier for an external procedure. It should be diagnosed.
klausler commented 1 month ago

Which surviving linkers are case-insensitive?