[LLVMbugs] [Bug 18950] New: Clang does not emit DW_TAG_unspecified_parameters for varargs function

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Feb 24 11:26:46 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=18950

            Bug ID: 18950
           Summary: Clang does not emit DW_TAG_unspecified_parameters for
                    varargs function
           Product: clang
           Version: 3.4
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: emaste at freebsd.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

LLDB is unable to call a varargs function, as debug data does not include
DW_TAG_unspecified_parameters.

(lldb) expression (int)printf("value is %d.\\n", value);
error: no matching function for call to 'printf'
note: candidate function not viable: requires 1 argument, but 2 were provided
error: 1 errors parsing expression

Apple bug: 13690847
LLDB bug: 17183 <http://llvm.org/bugs/show_bug.cgi?id=17183>

> This is a clang bug. It should be emitting a
> DW_TAG_unspecified_parameters tag after the
> DW_TAG_formal_parameter children in a
> DW_TAG_subprogram, DW_TAG_inlined_subroutine,
> or DW_TAG_subroutine_type.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140224/a1129cc6/attachment.html>


More information about the llvm-bugs mailing list