Index: lib/abi/CHANGELOG.TXT =================================================================== --- lib/abi/CHANGELOG.TXT +++ lib/abi/CHANGELOG.TXT @@ -16,6 +16,16 @@ Version 5.0 ----------- +* rTBD - Fix undefined "___cxa_deleted_virtual" symbol in macosx + + x86_64-linux-gnu + ---------------- + No changes + + x86_64-apple-darwin16.0 + ----------------------- + Symbol added: ___cxa_deleted_virtual + * r296729 - Remove std::num_get template methods which should be inline These functions should never have had visible definitions in the dylib but Index: lib/abi/x86_64-apple-darwin16.abilist =================================================================== --- lib/abi/x86_64-apple-darwin16.abilist +++ lib/abi/x86_64-apple-darwin16.abilist @@ -2323,6 +2323,8 @@ {'type': 'I', 'is_defined': True, 'name': '___cxa_current_exception_type'} {'type': 'U', 'is_defined': False, 'name': '___cxa_current_primary_exception'} {'type': 'U', 'is_defined': False, 'name': '___cxa_decrement_exception_refcount'} +{'type': 'U', 'is_defined': False, 'name': '___cxa_deleted_virtual'} +{'type': 'I', 'is_defined': True, 'name': '___cxa_deleted_virtual'} {'type': 'U', 'is_defined': False, 'name': '___cxa_demangle'} {'type': 'I', 'is_defined': True, 'name': '___cxa_demangle'} {'type': 'U', 'is_defined': False, 'name': '___cxa_end_catch'} Index: lib/libc++abi.exp =================================================================== --- lib/libc++abi.exp +++ lib/libc++abi.exp @@ -12,6 +12,7 @@ ___cxa_guard_release ___cxa_rethrow ___cxa_pure_virtual +___cxa_deleted_virtual ___cxa_begin_catch ___cxa_throw ___cxa_vec_cctor Index: lib/libc++abi2.exp =================================================================== --- lib/libc++abi2.exp +++ lib/libc++abi2.exp @@ -12,6 +12,7 @@ ___cxa_guard_release ___cxa_rethrow ___cxa_pure_virtual +___cxa_deleted_virtual ___cxa_begin_catch ___cxa_throw ___cxa_vec_cctor Index: lib/libc++sjlj-abi.exp =================================================================== --- lib/libc++sjlj-abi.exp +++ lib/libc++sjlj-abi.exp @@ -12,6 +12,7 @@ ___cxa_guard_release ___cxa_rethrow ___cxa_pure_virtual +___cxa_deleted_virtual ___cxa_begin_catch ___cxa_throw ___cxa_vec_cctor Index: test/libcxx/language.support/cxa_deleted_virtual.pass.cpp =================================================================== --- test/libcxx/language.support/cxa_deleted_virtual.pass.cpp +++ test/libcxx/language.support/cxa_deleted_virtual.pass.cpp @@ -0,0 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// UNSUPPORTED: c++98, c++03 + +// Test exporting the symbol: "__cxa_deleted_virtual" in macosx + +struct S { virtual void f() = delete; }; +int main() { new S; }