[cfe-commits] r145244 - in /cfe/trunk: include/clang/AST/ExprCXX.h include/clang/Sema/Initialization.h include/clang/Sema/Sema.h lib/Sema/Sema.cpp lib/Sema/SemaCast.cpp lib/Sema/SemaExprCXX.cpp lib/Sema/SemaInit.cpp test/Index/preamble_macro_template.cpp test/Index/recursive-cxx-member-calls.cpp

Richard Smith richard at metafoo.co.uk
Thu Dec 1 11:15:47 PST 2011


On Thu, December 1, 2011 12:09, Nicola Gigante wrote:
> Il giorno 30/nov/2011, alle ore 00:06, Richard Smith ha scritto:
>> On Tue, November 29, 2011 22:28, Richard Smith wrote:
>>> This change produces a broken AST for this testcase:
>>>
>>> _Complex double d = 0.0;
>>> int n = static_cast<int>(d);
>>>
>>> Please fix or revert. Thanks!
>>> Richard
>
> I'm sorry, this was expected to work of course.
> I'll look at it as soon as possible.
>
>> This patch is also causing us to build broken ASTs when compiling Chromium,
>> for what appears to be an unrelated reason. I've reverted the patch in
>> r145447.
>
> What do you mean by "broken AST" here?

We are creating a CXXStaticCast node with a null TypeAsWritten. I'm trying to
obtain a reduced testcase for you...

Thanks,
Richard




More information about the cfe-commits mailing list