llvm / llvm-project

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

[Flang][debug] conflicting debug info for argument #116525

Open k-arrows opened 4 hours ago

k-arrows commented 4 hours ago

Reproducible on Godbolt: https://godbolt.org/z/c8e9ob5Gb

Reproducer:

function s(x)
    character(len=2) :: x, s, ss

    s = x

    entry ss()

end function s

Error message:

conflicting debug info for argument
#dbg_declare(ptr %0, !15, !DIExpression(), !11)
!12 = !DILocalVariable(name: "s", arg: 1, scope: !4, file: !2, line: 2, type: !9)
!15 = !DILocalVariable(name: "ss", arg: 1, scope: !4, file: !2, line: 2, type: !9)
conflicting debug info for argument
#dbg_declare(ptr %0, !25, !DIExpression(), !23)
!22 = !DILocalVariable(name: "s", arg: 1, scope: !18, file: !2, line: 2, type: !9)
!25 = !DILocalVariable(name: "ss", arg: 1, scope: !18, file: !2, line: 2, type: !9)
error: failed to create the LLVM module
llvmbot commented 3 hours ago

@llvm/issue-subscribers-debuginfo

Author: None (k-arrows)

Reproducible on Godbolt: https://godbolt.org/z/c8e9ob5Gb Reproducer: ```f90 function s(x) character(len=2) :: x, s, ss s = x entry ss() end function s ``` Error message: ```console conflicting debug info for argument #dbg_declare(ptr %0, !15, !DIExpression(), !11) !12 = !DILocalVariable(name: "s", arg: 1, scope: !4, file: !2, line: 2, type: !9) !15 = !DILocalVariable(name: "ss", arg: 1, scope: !4, file: !2, line: 2, type: !9) conflicting debug info for argument #dbg_declare(ptr %0, !25, !DIExpression(), !23) !22 = !DILocalVariable(name: "s", arg: 1, scope: !18, file: !2, line: 2, type: !9) !25 = !DILocalVariable(name: "ss", arg: 1, scope: !18, file: !2, line: 2, type: !9) error: failed to create the LLVM module ```
llvmbot commented 3 hours ago

@llvm/issue-subscribers-flang-ir

Author: None (k-arrows)

Reproducible on Godbolt: https://godbolt.org/z/c8e9ob5Gb Reproducer: ```f90 function s(x) character(len=2) :: x, s, ss s = x entry ss() end function s ``` Error message: ```console conflicting debug info for argument #dbg_declare(ptr %0, !15, !DIExpression(), !11) !12 = !DILocalVariable(name: "s", arg: 1, scope: !4, file: !2, line: 2, type: !9) !15 = !DILocalVariable(name: "ss", arg: 1, scope: !4, file: !2, line: 2, type: !9) conflicting debug info for argument #dbg_declare(ptr %0, !25, !DIExpression(), !23) !22 = !DILocalVariable(name: "s", arg: 1, scope: !18, file: !2, line: 2, type: !9) !25 = !DILocalVariable(name: "ss", arg: 1, scope: !18, file: !2, line: 2, type: !9) error: failed to create the LLVM module ```