This is the mail archive of the gdb@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]

Re: PR symtab/14441 - rvalue references


>>>>> "Jonathan" == Jonathan Wakely <jwakely.gcc@gmail.com> writes:

Jonathan> I'm trying to fix
Jonathan> http://sourceware.org/bugzilla/show_bug.cgi?id=14441 by adding
Jonathan> support for rvalue references.  I plan to contribute this if I
Jonathan> get it finished before anyone else fixes it, so I'll get a
Jonathan> copyright assignment for GDB filed with the FSF clerk.

Very nice, thank you.

Jonathan> Before I continue altering every function that checks TYPE_CODE_REF,
Jonathan> is my approach the right one?  Is adding TYPE_CODE_RVAL_REF and
Jonathan> touching dozens of functions the best approach, or should I go back to
Jonathan> my first attempt and just fix the few places that need to handle
Jonathan> lvalue and rvalue references differently?

I would accept either one.  Abstractly, I suppose a new type code would
be more in keeping with the current design.  But I think the other
choice would be ok, too, if it is a reasonably accurate model of C++.  I
don't know enough about rvalue references to say whether this is the
case.

Tom


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