https://issues.dlang.org/show_bug.cgi?id=22598

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #3 from [email protected] ---
(In reply to Walter Bright from comment #2)
> The __extension__ documentation is confusing:
> 
> "You can prevent such warnings within one expression by
> writing `__extension__' before the expression.  `__extension__' has no
> effect aside from this."
> 
> Yet in your example,
> 
>    __extension__({ if (expr); else ...})
> 
> is a statement, not an expression.

It’s a gnu statement expression. See
https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html. It’s also supported by
clang.

--

Reply via email to