[Bug c++/105438] Incorrect array-bounds warning with array size carried over from a previous template instantiation
bernie at codewiz dot org
gcc-bugzilla@gcc.gnu.org
Mon May 2 06:07:08 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105438
--- Comment #3 from Bernie Innocenti <bernie at codewiz dot org> ---
Not sure if this is helpful, but the IPA dump also shows two calls to
configure() with N=7 and none with N=2:
IPA function summary for int main()/3 inlinable
global time: 26.000000
self size: 9
global size: 9
min size: 6
self stack: 0
global stack: 0
size:0.000000, time:0.000000
size:3.000000, time:2.000000, executed if:(not inlined)
calls:
void configure(const int (&)[N], int) [with int N = 7]/6 function not
considered for inlining
freq:1.00 loop depth: 0 size: 3 time: 12 callee size: 5 stack: 0
op0 is compile time invariant
op1 is compile time invariant
void configure(const int (&)[N], int) [with int N = 7]/6 function not
considered for inlining
freq:1.00 loop depth: 0 size: 3 time: 12 callee size: 5 stack: 0
op0 is compile time invariant
op1 is compile time invariant
More information about the Gcc-bugs
mailing list