http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59250
Bug ID: 59250 Summary: usan: ICE (segfault) with -fsanitize=undefined in ubsan_create_data Product: gcc Version: 4.9.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: mpolacek at gcc dot gnu.org Created attachment 31272 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31272&action=edit Test case: Run as "g++ -fsanitize=undefined test29.ii" The followed code worked about week ago but fails now (r205246) with a segfault on x86-64-gnu-linux. $ g++ -fsanitize=undefined test29.ii test29.ii: In constructor 'FileHandle::FileHandle(const char*)': test29.ii:27:1: internal compiler error: Segmentation fault FileHandle::FileHandle (const char* fname) : fname(fname) { ^ 0xb9f85f crash_signal ../../gcc/toplev.c:336 0xbbab24 ubsan_source_location ../../gcc/ubsan.c:230 0xbbab24 ubsan_create_data(char const*, unsigned int, ubsan_mismatch_data const*, ...) ../../gcc/ubsan.c:463 0xbbb179 ubsan_expand_null_ifn(gimple_stmt_iterator_d) ../../gcc/ubsan.c:565