[LLVMbugs] [Bug 11051] New: c++0x typeinfo header dies
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Oct 2 15:51:42 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=11051
Summary: c++0x typeinfo header dies
Product: libc++
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
AssignedTo: hhinnant at apple.com
ReportedBy: tim.dawborn at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=7388)
--> (http://llvm.org/bugs/attachment.cgi?id=7388)
described test.cc
Inclusion of the <typeinfo> header when using c++0x causes a fatal error:
$ uname -a
Linux pc-4e43-0 2.6.32-34-generic-pae #77-Ubuntu SMP Tue Sep 13 21:16:18 UTC
2011 i686 GNU/Linux
$ clang++ --version
clang version 3.0 (trunk 140931)
Target: i386-pc-linux-gnu
Thread model: posix
$ cat test.cc
#include <typeinfo>
int
main(void) {
return 0;
}
$ clang++ -std=c++0x test.cc -o test
In file included from test.cc:1:
In file included from /usr/include/c++/4.4/typeinfo:34:
In file included from /usr/include/c++/4.4/exception:148:
/usr/include/c++/4.4/exception_ptr.h:143:13: error: unknown type name
'type_info'
const type_info*
^
1 error 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