This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/23545] wrong arguments are given to a funtion
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Aug 2005 11:54:32 -0000
- Subject: [Bug c++/23545] wrong arguments are given to a funtion
- References: <20050824090422.23545.sarholz@rz.rwth-aachen.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-24 11:54 -------
GenCP (dimRand(xDim), dimRand(yDim), dimRand(zDim));
The order of which dimRand is called first, second, and last is undefined as defined by the C++
standard. GCC just happens to be calling the functions in a different order than you were expecting
them to be called. This is not a bug.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23545