[Bug c++/11633] g++ does not initialize structures when auto-increment variables are used
msimons at simons-clan dot com
gcc-bugzilla@gcc.gnu.org
Wed Jul 23 01:09:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11633
------- Additional Comments From msimons at simons-clan dot com 2003-07-23 01:09 -------
For the C language, in a draft of the C99 spec around section 6.7.8
"Initialization", it talks about initialization lists.
===
[#23] The order in which any side effects occur among the
initialization list expressions is unspecified. (121)
121 - In particular, the evaluation order need not be the same
as the order of subobject initialization.
===
Perhaps someone with the c++ standard handy can find "initialization lists".
If the same holds true for the c++ standard, then I agree this is a code bug
not a compiler bug. :(
More information about the Gcc-bugs
mailing list