This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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 c++/16043] missing C++11 move constructor


https://sourceware.org/bugzilla/show_bug.cgi?id=16043

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jan.kratochvil at redhat dot com

--- Comment #1 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
Created attachment 7231
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7231&action=edit
fix+testcase, just that it displays &

This fix+testcase would work, just that it displays:
$1 = (C &) @0x7fffffffd960: {i = 42}
while I think it should display:
$1 = (C &&) @0x7fffffffd960: {i = 42}

This means to either add TYPE_CODE_RVALUE_REF besides TYPE_CODE_REF which is
pretty tedious - referenced in 155 LoCs - due to missing types virtualization.

Or to add new main_type::flag_ref_is_rvalue but that is not too clean.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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