Bug 15372 - ref qualifiers and overloading
Summary: ref qualifiers and overloading
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: c++ (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: archer
Depends on:
Blocks: 16106
  Show dependency treegraph
 
Reported: 2013-04-15 20:07 UTC by Tom Tromey
Modified: 2023-12-23 12:21 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.