https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81604
--- Comment #7 from Aldy Hernandez <aldyh at gcc dot gnu.org> --- Author: aldyh Date: Wed Sep 13 16:06:07 2017 New Revision: 252185 URL: https://gcc.gnu.org/viewcvs?rev=252185&root=gcc&view=rev Log: PR sanitizer/81604 * ubsan.c (ubsan_type_descriptor): For UBSAN_PRINT_ARRAY don't change type to the element type, instead add eltype variable and use it where we are interested in the element type. * c-c++-common/ubsan/pr81604.c: New test. Added: branches/range-gen2/gcc/testsuite/c-c++-common/ubsan/pr81604.c Modified: branches/range-gen2/gcc/ChangeLog branches/range-gen2/gcc/testsuite/ChangeLog branches/range-gen2/gcc/ubsan.c