[cfe-dev] Complex literals and VS mode?
John Thompson
john.thompson.jtsoftware at gmail.com
Mon Oct 5 19:15:14 PDT 2009
Here's another crack at it, without the goto's.
(Sorry for the duplicate, Doug.)
-John
On Mon, Oct 5, 2009 at 3:14 PM, Douglas Gregor <dgregor at apple.com> wrote:
>
> On Oct 1, 2009, at 4:34 PM, John Thompson wrote:
>
> Three tests are failing on Windows because complex literals (suffix 'i')
>> appear not to be supported when the Microsoft emulation option is on (which
>> it is by default for the Visual Studio-built version).
>>
>
> I don't know anything about complex literals in general, or if this was
>> intentional, or whether it is supported in VC++, but the enclosed patch
>> makes the following tests pass:
>>
>
> Yes, we should support complex literals even in Microsoft emulation mode.
> However, I'd really rather not have a "goto" in this code... could you
> replace that goto with some kind of "WasMicrosoftSuffix" bool?
>
> - Doug
>
--
John Thompson
John.Thompson.JTSoftware at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091005/a1f5b07b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: win32complexconstants.patch
Type: application/octet-stream
Size: 3333 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091005/a1f5b07b/attachment.obj>
More information about the cfe-dev
mailing list