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