This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/66875] entire for loop got eliminated at cddce2 tree-opt stage
- From: "patricksung at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 15 Jul 2015 10:19:14 +0000
- Subject: [Bug tree-optimization/66875] entire for loop got eliminated at cddce2 tree-opt stage
- Auto-submitted: auto-generated
- References: <bug-66875-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66875
--- Comment #3 from Patrick S. <patricksung at gmail dot com> ---
argh...
my mistake to not check the termination condition is actually matching the size
of the prot_short_str[] array. fixing that by properly calculating the array
size would fix the compilation now. Thanks!
But one more thing. Since the compiler can see the static size of the array,
wouldn't it be possible to have a warning for possible access of array size out
of bound?