Commit 5df20b90 by Martin Sebor Committed by Martin Sebor

PR testsuite/91258 - g++.dg/ubsan/vla-1.C and gcc.dg/strlenopt-70.c fail starting with r273783

gcc/testsuite/ChangeLog:
	* g++.dg/ubsan/vla-1.C: Suppress a valid warning.

From-SVN: r273915
parent f16be16d
2019-07-30 Martin Sebor <msebor@redhat.com>
PR testsuite/91258
* g++.dg/ubsan/vla-1.C: Suppress a valid warning.
2019-07-30 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/91296
......
// { dg-do run }
// { dg-options "-Wno-vla -fsanitize=undefined" }
// { dg-options "-Wno-vla -Wno-stringop-overflow -fsanitize=undefined" }
// { dg-output "index 1 out of bounds" }
void f(int i) {
void f(int i)
{
/* The following creates an array of char[4] on the stack and
the initialization triggers a -Wstringop-overflow with LTO
(or when the function is inlined into the called, such as
with -fwhole-program). See PR91258. The warning is
suppressed above. */
int ar[i] = { 42, 24 };
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment