[cfe-commits] [Patch] PR11179 - Update StmtPrinter to not complain on some IntegerLiteral types
rtrieu at google.com
Thu Oct 20 16:08:05 PDT 2011
On Thu, Oct 20, 2011 at 2:53 PM, Richard Smith <richard at metafoo.co.uk>wrote:
> Hi Richard,
> On Thu, October 20, 2011 22:06, Richard Trieu wrote:
> > Update Clang to not complain when printing IntegerLiterals with type
> > unsigned short, __int128_t, or __uint128_t. This will fix PR11179.
> > PR:
> > http://llvm.org/bugs/show_bug.cgi?id=11179
> > Patch also located at:
> > http://codereview.appspot.com/5309045/
> For __int128_t and __uint128_t, the approach looks fine (though the printed
> value should include the "i128" or "Ui128" suffix).
Are those the correct suffixes? Clang and gcc doesn't recognize them as
valid integer constant suffixes.
For short and unsigned
> short, it seems to me that this is a bug in
> Sema::BuildExpressionFromIntegralTemplateArgument: we shouldn't be creating
> IntegerLiteral AST nodes with those types (or with negative values, for
Why can't an integer literal be short or negative?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-commits