This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/54773] no debug info generated for rvalue reference


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]