https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63690
Bug ID: 63690 Summary: [5 Regression] ICE: tree check: expected class 'expression', have 'constant' (string_cst) with -fsanitize=undefined Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz 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 Created attachment 33848 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33848&action=edit reduced testcase Compiler output: $ gcc -fsanitize=undefined testcase.c testcase.c: In function 'foo': testcase.c:5:1: internal compiler error: tree check: expected class 'expression', have 'constant' (string_cst) in tree_operand_check, at tree.h:3190 } ^ 0xdfd8c7 tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*) /mnt/svn/gcc-trunk/gcc/tree.c:9242 0x54743b expr_check(tree_node*, char const*, int, char const*) /mnt/svn/gcc-trunk/gcc/tree.h:2902 0x54743b tree_operand_check(tree_node*, int, char const*, int, char const*) /mnt/svn/gcc-trunk/gcc/tree.h:3190 0xbd99c8 tree_operand_check(tree_node*, int, char const*, int, char const*) /mnt/svn/gcc-trunk/gcc/tree.h:2733 0xbd99c8 instrument_object_size /mnt/svn/gcc-trunk/gcc/ubsan.c:1485 0xbdd439 execute /mnt/svn/gcc-trunk/gcc/ubsan.c:1649 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. Tested revisions: r216859 - ICE 4_9 r216431 - OK