https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61272
Bug ID: 61272 Summary: [UBSAN] ICE in is_ubsan_builtin_p(tree_node*), gcc/ubsan.c:534 Product: gcc Version: 4.10.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code 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, mpolacek at gcc dot gnu.org Created attachment 32841 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32841&action=edit Compile with g++ -S -std=c++11 -fsanitize=undefined Compiling the attached test case (invalid code) with g++ -S -std=c++11 -fsanitize=undefined test39.ii ICEs with: test39.ii:26:156: required from ‘struct std::__gnu_cxx::_Vector_base<std::__gnu_cxx::Point2d<int>, std::allocator<std::__gnu_cxx::Point2d<int> > >’ test39.ii:27:78: required from ‘class std::__gnu_cxx::vector<std::__gnu_cxx::Point2d<int> >’ test39.ii:30:33: required from here in is_ubsan_builtin_p, at ubsan.c:534 template < typename _Alloc > struct __alloc_traits:std::allocator_traits < _Alloc > ^ 0xc07468 is_ubsan_builtin_p(tree_node*) ../../gcc/ubsan.c:534 0x6ab586 dump_expr ../../gcc/cp/error.c:2022 0x6a8240 dump_type ../../gcc/cp/error.c:547