This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/54773] no debug info generated for rvalue reference
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 28 Oct 2012 13:53:11 +0000
- Subject: [Bug debug/54773] no debug info generated for rvalue reference
- Auto-submitted: auto-generated
- References: <bug-54773-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54773
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-10-28 13:53:11 UTC ---
This seems to be fixed on trunk, but GDB can't handle it:
struct X {
X& operator=(X&&) { return *this; }
};
int main()
{
X x;
x = X();
}
<1><5e>: Abbrev Number: 8 (DW_TAG_rvalue_reference_type)
<5f> DW_AT_byte_size : 8
<60> DW_AT_type : <0x29>
Temporary breakpoint 1, main () at rv.cc:8
8 x = X();
(gdb) ptype x
type = struct X {
public:
X & operator=(<unknown type in /dev/shm/a.out, CU 0x0, DIE 0x4b>);
}
Jason, can this be closed as fixed?