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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to