[cfe-commits] r146371 - in /cfe/trunk: include/clang/Basic/DiagnosticASTKinds.td lib/AST/ExprConstant.cpp test/SemaCXX/constant-expression-cxx11.cpp

Chandler Carruth chandlerc at google.com
Mon Dec 12 04:59:48 PST 2011


On Mon, Dec 12, 2011 at 4:46 AM, Richard Smith
<richard-llvm at metafoo.co.uk>wrote:

> +def note_constexpr_invalid_cast : Note<
> +  "%select{reinterpret_cast|dynamic_cast|reinterpreting cast}0 not
> allowed "
> +  "in a constant expression">;
>

What is a "reinterpreting cast"? The fact that it isn't a reinterpret_cast
is ... highly confusing. Is there any better way to phrase this?

Also, "is not allowed" would read buch better to me....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111212/682dd980/attachment.html>


More information about the cfe-commits mailing list