[Bug middle-end/81172] Improve -Warray-bounds for address arithmetic

2017-06-29 Thread ryxi at stu dot xidian.edu.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81172 --- Comment #2 from Xi Ruoyao --- (In reply to Andrew Pinski from comment #1) > The first one is well defined by C/C++. [expr.add] para 4: When an expression that has integral type is added to or subtracted from a pointer, the result has the ty

[Bug middle-end/81172] Improve -Warray-bounds for address arithmetic

2017-06-22 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81172 --- Comment #1 from Andrew Pinski --- The first one is well defined by C/C++.