[cfe-dev] Complex values handling in Clang
scanon at apple.com
Fri Feb 1 07:57:23 PST 2013
On Feb 1, 2013, at 10:56 AM, Hal Finkel <hfinkel at anl.gov> wrote:
> ----- Original Message -----
>> From: "Stephen Canon" <scanon at apple.com>
>> To: "rajesh viswabramana" <viswabramana.rajesh at gmail.com>
>> Cc: cfe-dev at cs.uiuc.edu
>> Sent: Friday, February 1, 2013 9:32:00 AM
>> Subject: Re: [cfe-dev] Complex values handling in Clang
>> _Complex integer types are a GCC extension (the standard specifies
>> only float _Complex, double _Complex and long double _Complex.
>> Apparently clang's support for this GCC extension doesn't perfectly
>> match GCC. I suspect that clang and GCC differ in arithmetic
>> promotion rank here; clang "promotes" the unsigned long long
>> literals to int _Complex (which truncates them), whereas GCC
>> promotes both to unsigned long long _Complex. I haven't actually
>> dug into the issue at all, however.
> Did Bill just fix this in r174181?
Certainly sounds like it from his description.
More information about the cfe-dev