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: [C++ PATCH] Fix dynamic_cast<XXX &> in template (PR c++/34364)


Mark Mitchell wrote:
(This is the long-standing issue that C++ does not have expressions of
reference type.  Variables and data members can have reference type, and
functions can return reference types, but expressions as such always
have non-reference types.  But, we've never quite made the internal
representation consistent with that.)

I don't think it's possible for the internal representation to be any more consistent with that; we always have to deal with the actual pointer values, even if they are automatically dereferenced.


Jason


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