http://llvm.org/bugs/show_bug.cgi?id=14573
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: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs