[Bug c/27697] incorrect warning about constness of pointer to an array in a const struct

fischer at td dot mw dot tum dot de gcc-bugzilla@gcc.gnu.org
Sun May 21 09:31:00 GMT 2006



------- Comment #1 from fischer at td dot mw dot tum dot de  2006-05-21 09:31 -------
In the function above:

bar.x[0][0] = 23; // gcc 4.1 gives error
*bar.x[0] = 23; // gcc 4.1 gives NO error

both lines do the same ....


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27697



More information about the Gcc-bugs mailing list