[Bug c/81631] -Wcast-qual false positive for pointer to array

2017-09-14 Thread gcc17 at cwde dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81631 --- Comment #3 from Tobias Jordan --- Hi, thanks for taking a look, and thanks for your explanation. As far as I understand it, it's somewhat intuitive that the qualifiers apply to array elements and not the array type itself. What bugs me is th

[Bug c/81631] New: -Wcast-qual false positive for pointer to array

2017-07-31 Thread gcc17 at cwde dot de
: c Assignee: unassigned at gcc dot gnu.org Reporter: gcc17 at cwde dot de Target Milestone: --- Hi, -- typedef int footype[6]; extern void const * bar; void baz(void) { footype const * x; x = (footype const *) bar; } -- with -Wcast-qual, this yields