[Bug c/47418] warning: array subscript is above array bounds at O2 with sin6_addr

2011-01-25 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47418 Richard Guenther changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c/47418] warning: array subscript is above array bounds at O2 with sin6_addr

2011-01-22 Thread chantry.xavier at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47418 --- Comment #3 from Xavier 2011-01-23 02:06:35 UTC --- Created attachment 23084 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23084 simpler testcase $ gcc -O3 -Wall -c small-test.c small-test.c: In function 'main': small-test.c:18:51: war

[Bug c/47418] warning: array subscript is above array bounds at O2 with sin6_addr

2011-01-22 Thread chantry.xavier at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47418 Xavier changed: What|Removed |Added CC||chantry.xavier at gmail dot |

[Bug c/47418] warning: array subscript is above array bounds at O2 with sin6_addr

2011-01-22 Thread dpmcgee at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47418 --- Comment #1 from Dan McGee 2011-01-23 00:15:29 UTC --- Also of note is the commented bit in the test case- if you instead dereference the s6_addr bit of the union, it all works without warnings. In the preprocessed source, replace ap = (cha