This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]