[PATCH] Permit the "if" literal suffix with Microsoft extensions enabled.

Aaron Ballman aaron at aaronballman.com
Thu May 29 16:06:19 PDT 2014


On Thu, May 29, 2014 at 6:50 PM, Peter Collingbourne <peter at pcc.me.uk> wrote:
> On Thu, May 29, 2014 at 06:41:00PM -0400, Aaron Ballman wrote:
>> I can't find any mention on MSDN of this suffix being supported -- and
>> pasting your test case into MSVC 2013 yields compile errors about a
>> bad suffix on a number, and __complex being unknown. Can you point me
>> to some documentation on this feature?
>
> This isn't a Microsoft extension -- it is a GNU extension that we support by
> default. We already support the 'i' suffix with Microsoft extensions enabled;
> it seems reasonable to support 'if' as well.

Ah! Okay, so the fact that when MS extensions are enabled, this
extension gets disabled is the bug. That makes sense.

LGTM!

~Aaron



More information about the cfe-commits mailing list