[Bug c++/26418] App with assignment to *(ptr + member_returning_zero()) segfaults

2006-02-22 Thread fuchsia dot groan at virgin dot net
--- Comment #1 from fuchsia dot groan at virgin dot net 2006-02-22 13:41 --- No compile options just g++ test.cpp generates faulty code -- fuchsia dot groan at virgin dot net changed: What|Removed |Added

[Bug c++/26418] App with assignment to *(ptr + member_returning_zero()) segfaults

2006-02-22 Thread pinskia 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