This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26418] App with assignment to *(ptr + member_returning_zero()) segfaults
- 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: 22 Feb 2006 14:05:08 -0000
- Subject: [Bug c++/26418] App with assignment to *(ptr + member_returning_zero()) segfaults
- References: <bug-26418-2225@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-02-22 14:04 -------
ptr+alloc()
The C and the C++ standard does not say which of ptr and alloc() is evaluated
first so GCC is producing code which evaluates ptr before calling alloc which
is ok for C and C++.
*** This bug has been marked as a duplicate of 11751 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26418