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

Re: [PATCH] rvalue reference implementation for C++0x


On Sun, 11 Mar 2007, Doug Gregor wrote:

| Adding a new kind of type node means we have about 10 times as many
| places to change in the compiler, including middle-end bits that
| should not need to know anything about rvalue references. How many
| bugs will we see down the line, when contributors for other languages
| just check against REFERENCE_TYPE and not the new
| RVALUE_REFERENCE_TYPE?

the bugs are not that of other languages, but within the C++ language.
If you change something to REFERENCE_TYPE, now you have to member all
the other places that might be checking for additional bits, plus
running the call chain to see how data flow.  If you use distinct
type, it shows up where you have to made additional modification and
how data flow.

-- Gaby


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