Bug 15372

Summary: ref qualifiers and overloading
Product: gdb Reporter: Tom Tromey <tromey>
Component: c++Assignee: Not yet assigned to anyone <unassigned>
Status: NEW ---    
Severity: normal CC: keiths, ssbssa
Priority: P2 Keywords: archer
Version: HEAD   
Target Milestone: ---   
See Also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56974
http://sourceware.org/bugzilla/show_bug.cgi?id=14441
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 16106    

Description Tom Tromey 2013-04-15 20:07:21 UTC
C++11 added "&" and "&&" ref qualifiers.
These are used in overload resolution.
There isn't any DWARF support for them yet, see
  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56974
But once this information is available, gdb should use it.
Comment 1 Keith Seitz 2017-03-09 22:30:23 UTC
Many years later, we have DWARF support for rvalue references and we even have pending support for them in GDB (see c++/14441). However, that patch series still has some problems with overload resolution.

I'm using this bug to track these problems. In our test suite, we (will) have:

FAIL: gdb.cp/rvalue-ref-overload.exp: lvalue reference overload
FAIL: gdb.cp/rvalue-ref-overload.exp: rvalue reference overload
FAIL: gdb.cp/rvalue-ref-params.exp: print value of f1 on Child&& in f2

These will be marked KFAIL and linked to this bug.