[Bug c/60837] initializer element is not constant: int test = (1, 2) + 1;

potrepalov@asc-ural.ru gcc-bugzilla@gcc.gnu.org
Mon Apr 14 05:16:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60837

ilya <potrepalov@asc-ural.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from ilya <potrepalov@asc-ural.ru> ---
Reread C standart.

6.6 Constant expressions

Constraints
Constant expressions shall not contain assignment, increment, decrement,
function-call, or comma operators, except when they are contained within a
subexpression that is not evaluated.



More information about the Gcc-bugs mailing list