[C++ Patch] PR 29273
Paolo Carlini
paolo.carlini@oracle.com
Tue Jan 3 13:57:00 GMT 2012
Hi,
in this issue, filed by Martin Sebor and confirmed at the time by the
EDG people (indeed ICC accepts the testcase), we reject an array as
source v of a dynamic_cast, because we don't decay it to pointer, as we
should when T is a pointer type, per 5, p8 in C++03 about an lvalue
expression as operand of an operator which expects an rvalue (I get
C++11 as not changing anything in terms of decay, modulo talking about
glvalue, prvalue, etc).
I also tweaked a bit the code to make sure that in any case we output
the original v in error messages.
Tested x86_64-linux.
Thanks,
Paolo.
///////////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_29273
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120103/9c81c4f7/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_29273
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120103/9c81c4f7/attachment-0001.ksh>
More information about the Gcc-patches
mailing list