[cfe-commits] Patch Approval Request
Sebastian Redl
sebastian.redl at getdesigned.at
Sat Oct 25 18:58:21 PDT 2008
Hi,
Attached is a patch that fixes a few places where TryCopyInitialization
is too lax and allows casts that it shouldn't. In particular, it would
allow integral/floating/enum to enum, and - because
isNullPointerConstant used C semantics and treated (void*)0 as a null
pointer constant, it allowed the expression static_cast<some pointer
type>((void*)0).
This patch is in preparation of my work on static_cast, which will
follow as soon as I've got a few remaining points implemented.
Please approve for committing.
Sebastian
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: static-pre.patch
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20081026/59875b42/attachment.ksh>
More information about the cfe-commits
mailing list