Il giorno 01/dic/2011, alle ore 20:15, Richard Smith ha scritto: > 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… >
Thank you. In the meantime, I've attached this revised patch that should fix the issue of _Complex casts. Would you try it please? I'm also working on a way to pass the SourceLocations and the TypeSourceInfo to CastExprToType(), but I'm having some problems. I'll have more news on this as soon as possible. > Thanks, > Richard > Bye, Nicola
cast.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
