[Bug c/37725] wrong struct initialization with non-constant expressions

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Oct 3 10:58:00 GMT 2008



------- Comment #1 from jakub at gcc dot gnu dot org  2008-10-03 10:56 -------
Please read the standard, particularly ISO C99 in 6.7.8/23 says:
"The order in which any side effects occur among the initialization list
expressions is unspecified." 130)

"130) In particular, the evaluation order need not be the same as the order of
subobject initialization."


-- 

jakub at gcc dot gnu dot org changed:

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


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



More information about the Gcc-bugs mailing list