Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++.moderated > #2578

Re: Which compilers support GCC expression statements?

From Dave Abrahams <dave@boostpro.com>
Newsgroups comp.lang.c++.moderated
Subject Re: Which compilers support GCC expression statements?
Date 2011-11-30 12:31 -0800
Organization unknown
Message-ID <m2wrai81i8.fsf@boostpro.com> (permalink)
References <fb5d7d56-7984-4611-8f5c-5b07283d70e3@cu3g2000vbb.googlegroups.com>

Show all headers | View raw


on Wed Nov 30 2011, Lorenzo Caminiti <lorcaminiti-AT-gmail.com> wrote:

> Hello all,
>
> Do you know which compilers support GCC extension for "expression
> statements"?
> http://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html
>
> int x = ({
>     int a = 10;
>     a++;
> });
>
> I found this list online:
> http://stackoverflow.com/questions/6440021/compiler-support-of-gnu-statement-expression
>
> GCC >=3
> Intel C++ Compiler >=?
> Clang/LLVM >= ?
> Sun Studio >= 12 (New Language Extensions)
> IBM XL for z/OS (marked as IBM extension)
> Open64 (as it use osprey-gcc frontend)
> PathScale® EKOPath
>
> Any more? EDG? Comeau?

I believe Comeau and EDG must support it if Intel does; Intel and Comeau
both use an EDG front-end.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com


      [ See http://www.gotw.ca/resources/clcm.htm for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]

Back to comp.lang.c++.moderated | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Which compilers support GCC expression statements? Lorenzo Caminiti <lorcaminiti@gmail.com> - 2011-11-29 22:25 -0800
  Re: Which compilers support GCC expression statements? Dave Abrahams <dave@boostpro.com> - 2011-11-30 12:31 -0800
    Re: Which compilers support GCC expression statements? Miles Bader <miles@gnu.org> - 2011-12-02 22:38 -0800
  Re: Which compilers support GCC expression statements? Arne Mertz <arnemertz@googlemail.com> - 2011-11-30 12:45 -0800
  Re: Which compilers support GCC expression statements? Uwe Dolinsky <uwe@codeplay.com> - 2011-12-02 22:32 -0800

csiph-web