[LLVMbugs] [Bug 14452] New: cannot #include <string> using trunk clang and libc++
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Nov 28 17:49:48 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=14452
Bug #: 14452
Summary: cannot #include <string> using trunk clang and libc++
Product: libc++
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
AssignedTo: hhinnant at apple.com
ReportedBy: kremenek at apple.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
$ cat test.cpp
#include <string>
$ clang++ -std=c++11 -stdlib=libc++ -nostdinc++ -I/tmp/libcxx/include
-fsyntax-only test.cpp
In file included from test.cpp:1:
In file included from /tmp/libcxx/include/string:434:
In file included from /tmp/libcxx/include/algorithm:594:
In file included from /tmp/libcxx/include/memory:590:
In file included from /tmp/libcxx/include/typeinfo:61:
/tmp/libcxx/include/exception:145:5: error: an attribute list cannot appear
here
_LIBCPP_NORETURN friend void rethrow_exception(exception_ptr);
^~~~~~~~~~~~~~~~
/tmp/libcxx/include/__config:192:28: note: expanded from macro
'_LIBCPP_NORETURN'
# define _LIBCPP_NORETURN [[noreturn]]
^~~~~~~~~~~~
1 error generated.
I am using clang svn 168846 and libc++ 168846.
What am I doing wrong? This seem like something that should just work.
--
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