C++ PATCH: PR 31388

Mark Mitchell mark@codesourcery.com
Thu Apr 26 05:28:00 GMT 2007


Nathan Sidwell wrote:
> Mark Mitchell wrote:
>> This patch fixes PR c++/31388.  This PR is about the fact that "!0i"
>> is not accepted by G++, which is a regression.  I fixed this by
>> decreeing that complex types (which are a GNU extension to ISO C++)
>> are in fact "arithmetic types" in the sense of the standard.
>> Everything else then "just works".
>>
>> I think this makes sense: like other arithmetic types, the usual
>> arithmetic operations are available, etc.  However, before I check
>> this in, I'd like the opinions of my fellow C++ maintainers: does
>> anyone see a problem with this approach?
> 
> seems fair to me too.

Thanks to you and Jason for the extra eyes.

I've checked in the patch on mainline.  I'm going to hold off on putting
it on the release branches because (a) it's a big enough change that
there may be follow-on issues, (b) it was broken in 4.1.x too, and (c)
it's an extension.  After 4.2.0 is out, I'll check it in there, if there
haven't been problems.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list