[llvm-bugs] [Bug 38017] Is AST incorrectly representing C++'s explicit casts?

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jul 8 13:16:33 PDT 2018


Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
> Is this actually correct?

Yes. In general the semantic effects of an explicit CastExpr are those
described by that CastExpr and all immediate ImplicitCastExpr descendents. This
is necessary because an explicit cast can involve multiple conversion stages.
For implementation simplicity, the outermost explicit cast node is often
modeled as CK_NoOp, but there's no guarantee of that.

This is just something you need to deal with when interpreting the AST.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180708/487109a1/attachment.html>

More information about the llvm-bugs mailing list