[Bug middle-end/82286] Wrong array subscript is above array bounds
hermantenbrugge at home dot nl
gcc-bugzilla@gcc.gnu.org
Fri Sep 22 10:20:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82286
--- Comment #3 from Herman ten Brugge <hermantenbrugge at home dot nl> ---
If I put:
if (p_input_matrix->nof_rows > MAX_MATRIX_SIZE || p_input_matrix->nof_cols >
MAX_MATRIX_SIZE) return;
at the start of my function I still get the warning.
I removed some assert statement at the start of the original code because they
did nothing to preevent the warning.
More information about the Gcc-bugs
mailing list