[C++0x PATCH] "long long" support in C++0x mode

Doug Gregor doug.gregor@gmail.com
Wed Jan 2 04:38:00 GMT 2008


On Dec 26, 2007 12:52 PM, Mark Mitchell <mark@codesourcery.com> wrote:
> Doug Gregor wrote:
>
> >> Is it a good idea to use cxx_dialect even for C/ObjC?
> >> It works for now, because cxx_dialect defaults to cxx98 and for C
> >> nothing changes it, but what if cxx_dialect changes to default to cxx0x?
> >> Shouldn't that be instead
> >>     = warn_long_long
> >>       && ((pedantic && (c_dialect_cxx ()
> >>                         ? cxx_dialect == cxx98
> >>                         : !flag_isoc99)) || warn_traditional);
> >> ?
> >
> > That's the safer alternative, sure.
>
> With Jakub's change (in both places), the patch is OK.

Thanks, Mark. Final version of the patches attached for future reference.

  - Doug
-------------- next part --------------
A non-text attachment was scrubbed...
Name: long_long.patch
Type: text/x-patch
Size: 2937 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080102/82328874/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: long_long_web.patch
Type: text/x-patch
Size: 2708 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080102/82328874/attachment-0001.bin>


More information about the Gcc-patches mailing list