[LLVMbugs] [Bug 13082] New: libc++ fails to build with disabled exceptions
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Jun 11 11:21:18 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13082
Bug #: 13082
Summary: libc++ fails to build with disabled exceptions
Product: libc++
Version: unspecified
Platform: All
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
AssignedTo: hhinnant at apple.com
ReportedBy: annulen at yandex.ru
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
When compiling libc++ using clang, CMake build system and
LIBCXX_ENABLE_EXCEPTIONS=OFF compilation fails:
cd /home/kostya/src/git/libcxx/build-noexcept/lib && /usr/local/bin/clang++
-Dcxx_EXPORTS -D_LIBCPP_NO_EXCEPTIONS -DNDEBUG -fPIC
-I/home/kostya/src/git/libcxx/include -nostdinc++ -std=c++0x -Wall -W
-Wno-unused-parameter -Wwrite-strings -Wno-long-long -fno-exceptions -fPIC -o
CMakeFiles/cxx.dir/__/src/debug.cpp.o -c
/home/kostya/src/git/libcxx/src/debug.cpp
/home/kostya/src/git/libcxx/src/debug.cpp:149:13: error: cannot use 'throw'
with exceptions disabled
throw bad_alloc();
^
/home/kostya/src/git/libcxx/src/debug.cpp:170:9: error: cannot use 'throw' with
exceptions disabled
throw bad_alloc();
^
/home/kostya/src/git/libcxx/src/debug.cpp:405:13: error: cannot use 'throw'
with exceptions disabled
throw bad_alloc();
^
/home/kostya/src/git/libcxx/src/debug.cpp:427:13: error: cannot use 'throw'
with exceptions disabled
throw bad_alloc();
^
/home/kostya/src/git/libcxx/src/debug.cpp:448:9: error: cannot use 'throw' with
exceptions disabled
throw bad_alloc();
^
5 errors generated.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list