Skip to content

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

@k-arrows

Description

@k-arrows

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

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions