[Bug c++/15942] modifying data in a int * cast pointer to a pointer to a member has no effect when -O2 is used
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Fri Jun 11 16:24:00 GMT 2004
------- Additional Comments From bangerth at dealii dot org 2004-06-11 16:24 -------
This code is invalid. If you do
int a:: *n[8];
you allocate an array of 8 pointers-to-int-member. However, struct a
does not have an integer member, only an array of integers. You are
not allowed to convert between these.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15942
More information about the Gcc-bugs
mailing list