]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/117254 - ICE with access diangostics
authorRichard Biener <rguenther@suse.de>
Tue, 22 Oct 2024 09:46:47 +0000 (11:46 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 22 Oct 2024 11:25:48 +0000 (13:25 +0200)
commitd464a52d0678dfea523a60efe8b792ba1b8d40db
tree80f43c5901fa58af83c110d1ab0e758f86a876b8
parenta6b26e5ea09779bf276dff52a6692f3bb655d230
tree-optimization/117254 - ICE with access diangostics

The diagnostics code fails to handle non-constant domain max.

PR tree-optimization/117254
* gimple-ssa-warn-access.cc (maybe_warn_nonstring_arg):
Check the array domain max is constant before using it.

* gcc.dg/pr117254.c: New testcase.
gcc/gimple-ssa-warn-access.cc
gcc/testsuite/gcc.dg/pr117254.c [new file with mode: 0644]