[LLVMbugs] [Bug 14573] New: Debug info for unnamed parameters is not present

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Dec 11 08:42:11 PST 2012


             Bug #: 14573
           Summary: Debug info for unnamed parameters is not present
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Keywords: googler
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: dblaikie at gmail.com
                CC: dgregor at apple.com, echristo at gmail.com,
                    llvmbugs at cs.uiuc.edu
            Blocks: 14330
    Classification: Unclassified

gdb.cp/overload.cpp fails due to the overloaded function 'bar' having unnamed
parameters. This leads to Clang not emitting any parameter info & GDB then
being unable to call the function with parameters (instead it can be called
without any parameters "func()" which is disturbing).

GCC, by contrast, emits debug info containing only the type and location in the
case of unnamed parameters. GDB behaves appropriately then.

My simplified test case:

struct A {

struct B {

int func(A) { return 11; }
int func(B) { return 22; }

int main() {
  A a;
  B b;
  return func(a) + func(b);

break on line 13 (the 'return') then try to "print func(a)" or "print func(b)"
- with Clang's debug info those both fail but "print func()" passes (& calls
func(A), it seems)

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list