[Bug sanitizer/124401] New: gcc.dg/ubsan/pointer-counted-by-bounds-124230.c etc. FAIL
ro at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Mar 8 10:21:28 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124401
Bug ID: 124401
Summary: gcc.dg/ubsan/pointer-counted-by-bounds-124230.c etc.
FAIL
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: sanitizer
Assignee: unassigned at gcc dot gnu.org
Reporter: ro at gcc dot gnu.org
CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
jakub at gcc dot gnu.org, kcc at gcc dot gnu.org,
qing.zhao at oracle dot com
Target Milestone: ---
Target: sparc*-sun-solaris2.11
The new gcc.dg/ubsan/pointer-counted-by-bounds-124230.c etc. tests FAIL on
32 and 64-bit Solaris/SPARC:
+FAIL: gcc.dg/ubsan/pointer-counted-by-bounds-124230.c -O0 execution test
at all optimization levels, same for the rest (-float, -struct, -union).
E.g. for gcc.dg/ubsan/pointer-counted-by-bounds-124230.c the actual output is
gcc.dg/ubsan/pointer-counted-by-bounds-124230.c:55:23: runtime error: index 10
out of bounds for type 'char [*]'
gcc.dg/ubsan/pointer-counted-by-bounds-124230.c:56:30: runtime error: index 11
out of bounds for type 'char [*]'
instead of the expected "for type 'int [*]'".
Btw., dg-output should use {} for quoting instead of double quotes. This
avoids
the excessive escaping that makes the expected output very hard to read.
More information about the Gcc-bugs
mailing list