[Bug c/47418] New: 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 Summary: warning: array subscript is above array bounds at O2 with sin6_addr Product: gcc Version: 4.5.2 Status: UNCONFIRMED Severity: normal Priority: P3

[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