Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Dave Abrahams Newsgroups: comp.lang.c++.moderated Subject: Re: Which compilers support GCC expression statements? Date: Wed, 30 Nov 2011 12:31:15 -0800 (PST) Organization: unknown Lines: 37 Sender: lang-cpp-request@vandevoorde.com Approved: musiphil@bawi.org Message-ID: References: NNTP-Posting-Host: QpGXzuWJJPFbyti9gY4JlOFEsmB6Meyj1XNCeaW/tdQ= Content-Type: text/plain; charset=utf-8 X-Trace: news.albasani.net T2PFRYNw1OysAo+qOqkYejexGZW8UDOiC6ocKzvJZfA3XwOQbskt02sAG2W9lKO2EO/9218L3PAfex4tCTwfjA== X-Complaints-To: abuse@albasani.net NNTP-Posting-Date: Wed, 30 Nov 2011 20:31:18 +0000 (UTC) X-Mailer: Perl5 Mail::Internet v2.05 X-Submission-Address: lang-cpp-submit@vandevoorde.com Cancel-Lock: sha1:ND45F9j50g5+8lROkmzguttz/h8= X-Original-Date: Wed, 30 Nov 2011 03:20:47 -0500 Xref: x330-a1.tempe.blueboxinc.net comp.lang.c++.moderated:2578 on Wed Nov 30 2011, Lorenzo Caminiti 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! ]