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

2008-10-03 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2008-10-03 18:56 --- I thought there was a defect report (against the C standard) about this but I can't find the bug which was referencing that one. -- Pinski -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37725

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

2008-10-03 Thread jakub at gcc dot gnu dot org
--- 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 nee