https://llvm.org/bugs/show_bug.cgi?id=25898
Bug ID: 25898 Summary: Exceptions of type pointer to member whose class type is incomplete are not correctly handled Product: libc++abi Version: unspecified Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: All Bugs Assignee: unassignedb...@nondot.org Reporter: david.majne...@gmail.com CC: llvm-bugs@lists.llvm.org, mclow.li...@gmail.com Classification: Unclassified consider: #include <stdio.h> struct S; void f(); #ifndef DEF_S void f() { throw (int S::*)nullptr; } #else struct S {}; int main() { try { f(); } catch (int S::*) { printf("caught it!\n"); } } #endif run with: ~/llvm/Debug+Asserts/bin/clang++ -c -stdlib=libc++ -std=c++11 d.cpp -o a.o ~/llvm/Debug+Asserts/bin/clang++ -c -stdlib=libc++ -DDEF_S d.cpp -o b.o -std=c++11 ~/llvm/Debug+Asserts/bin/clang++ a.o b.o -o t -stdlib=libc++ ISTM that libc++abi isn't comparing the NTBS when __incomplete_class_mask is set in the __pointer_to_member_type_info. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs