[Bug tree-optimization/111273] Spurious array-bounds error when copying data using _GLIBCXX_DEBUG iterators

2023-09-03 Thread jgrossma at qti dot qualcomm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111273 --- Comment #2 from J Grossman --- @Jonathan whether it's a warning or an error, it's incorrect. I'm filling a 1 element array with 1 element and it's saying it's out of bounds. That's a bug. I would like to use -Warray-bounds to catch coding m

[Bug c++/111273] New: Spurious array-bounds error when copying data using _GLIBCXX_DEBUG iterators

2023-09-01 Thread jgrossma at qti dot qualcomm.com via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jgrossma at qti dot qualcomm.com Target Milestone: --- When compiling with -Warray-bounds and -D_GLIBCXX_DEBUG on g++ 13.2.0, copying from a vector to an array throws the

[Bug c++/81354] New: Segmentation fault in SSA Strength Reduction using -O3

2017-07-07 Thread jgrossma at qti dot qualcomm.com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jgrossma at qti dot qualcomm.com Target Milestone: --- The following is a complete testcase: struct T { double a; double b; }; void foo(T Ad[], int As[2]) { int j; int i; int Bs[2] = {0,0}; T Bd[16