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
: 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
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