[Bug tree-optimization/48795] -Warray-bounds false positive

2011-05-01 Thread niko.lecam at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48795 --- Comment #3 from Nicolas Le Cam 2011-05-01 10:11:47 UTC --- (In reply to comment #2) > "r1->data[1] = prm2" goes above "char data[1]" bounds. How it's a false > positive? Because the structure is a kind of flexible array (code has to follow C

[Bug tree-optimization/48795] -Warray-bounds false positive

2011-04-27 Thread niko.lecam at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48795 --- Comment #1 from Nicolas Le Cam 2011-04-27 23:42:35 UTC --- Removing the call to p avoid the warning. Also tested by replacing p with a call to memcpy for example, which also triggers the warning.

[Bug tree-optimization/48795] New: -Warray-bounds false positive

2011-04-27 Thread niko.lecam at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48795 Summary: -Warray-bounds false positive Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassig.