This is the mail archive of the
mailing list for the GCC project.
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
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.