[Bug testsuite/93058] FAIL: g++.dg/asan/asan_test.C -O2 (test for excess errors)
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 9 14:51:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93058
--- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> ---
Suppressing the warning for the whole test should definitely work and seems to
me like a reasonable way to deal with the failure.
The alloc_size attribute the warning relies on doesn't provide for the rounding
pvalloc does and GCC doesn't know about the function, so these (valid) use
cases will trigger it. We could teach GCC about the pvalloc property but since
the function is deprecated and I'm guessing rarely used it's probably not worth
the trouble.
More information about the Gcc-bugs
mailing list