[cfe-commits] [PATCH] Fix for reinterpret_cast (bug 11747)

Aaron Ballman aaron at aaronballman.com
Wed Feb 1 16:10:31 PST 2012


On Wed, Jan 25, 2012 at 3:41 PM, Eli Friedman <eli.friedman at gmail.com> wrote:
> +    // C++ 5.2.10p2 has a note that mentions that, subject to all other
> +    // restrictions, a cast to the same type is allowed so long as it does not
> +    // cast away constness. In C++98 The intent is not entirely clear here,
> +    // since all other paragraphs explicitly forbid casts to the same type.
> +    // In C++11 clarifies this case.
>
> It looks like this comment somehow got messed up in editing.
>
> Otherwise, looks good.

Sorry about the delayed response; I missed this one hitting my inbox.
I've attached a patch that fixes the comment up.  Good catch!

~Aaron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reinterpret_cast.patch
Type: application/octet-stream
Size: 3315 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120201/08c818dc/attachment.obj>


More information about the cfe-commits mailing list