bugzilla | 22 Jun 00:27 2013

[Bug 16412] New: C++11 library error on OS X 10.8.4

Bug ID Summary Product Version Hardware OS Status Severity Priority Component Assignee Reporter CC Classification
16412
C++11 library error on OS X 10.8.4
clang
3.3
PC
MacOS X
NEW
normal
P
Static Analyzer
kremenek <at> apple.com
kmowery <at> gmail.com
llvmbugs <at> cs.uiuc.edu
Unclassified

Created attachment 10734 [details] Exception from the c++ library on OS X 10.8 with XCode 4.6.3 installed Compiling a C++11 test case with llvm-3.3 fails on OSX 10.8.4 with XCode 4.6.3 installed: $ cat test.cpp #include <map> int main(void) {return 1;} $ llvm-3.3-build/Release+Asserts/bin/clang -std=c++11 -stdlib=libc++ test.cpp In file included from test.cpp:2: In file included from /usr/lib/c++/v1/map:371: In file included from /usr/lib/c++/v1/__tree:16: In file included from /usr/lib/c++/v1/memory:590: In file included from /usr/lib/c++/v1/typeinfo:61: /usr/lib/c++/v1/exception:146:5: error: an attribute list cannot appear here _LIBCPP_NORETURN friend void rethrow_exception(exception_ptr); ^~~~~~~~~~~~~~~~ /usr/lib/c++/v1/__config:190:28: note: expanded from macro '_LIBCPP_NORETURN' # define _LIBCPP_NORETURN [[noreturn]] ^~~~~~~~~~~~ 1 error generated. $ llvm-3.2-build/Release+Asserts/bin/clang -std=c++11 test.cpp $ ====================== Removing the "-std=c++11" solved the problem. I've attached the "exception" file from my local machine. I'm not sure if the file is valid C++11, so this bug might need to be filed with Apple. However, it compiles properly with vanilla llvm-3.2.
You are receiving this mail because:
  • You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
LLVMbugs@...
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
bugzilla | 22 Jun 00:44 2013

[Bug 16412] C++11 library error on OS X 10.8.4

changed bug 16412
What Removed Added
Status NEW RESOLVED
CC   richard-llvm <at> metafoo.co.uk
Resolution --- INVALID

Comment # 1 on bug 16412 from [dcl.attr.grammar]p4: "If an attribute-specifier-seq appertains to a friend declaration (11.3), that declaration shall be a definition." This is already fixed in trunk libc++.
You are receiving this mail because:
  • You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
LLVMbugs@...
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Gmane