Which modern compilers support the Gnu Statement expression (C and C++ languages). What versions should I have to use a statement expressions?
Statement expression is smth like ({ code; code; retval })
:
int b=56; int c=({int a; a=sin(b); a;});
I already know some such compilers:
This compiler seems not to support this (i'm unsure):
PS. some C/C++ compilers are listed here but I interested only in mature compilers, that are used widely (e.g not a tcc or turbo c)
The PathScale® EKOPath Compiler Suite
It support gnu99 with "−std=gnu99"
The Intel C++ Compiler does not support statement expressions, even the last version that I know, version 13.0.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With