https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65610
Bug ID: 65610 Summary: Compare debug failure with -g3 -fsanitize=undefined -fno-sanitize=vptr -O3 Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: burnus 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 Created attachment 35166 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35166&action=edit input.ii - compile with g++ -fcompare-debug -std=c++11 -g3 -fsanitize=undefined -fno-sanitize=vptr -O3 I get a -fcompare-debug failure (length) failure for the attached program. To reproduce: $ g++ -fcompare-debug -std=c++11 -g3 -fsanitize=undefined -fno-sanitize=vptr -O3 input.ii