Skip to content

c++0x typeinfo header dies #11423

@llvmbot

Description

@llvmbot
Bugzilla Link 11051
Resolution DUPLICATE
Resolved on Oct 03, 2011 01:37
Version unspecified
OS Linux
Attachments described test.cc
Reporter LLVM Bugzilla Contributor
CC @DougGregor,@efriedma-quic

Extended Description

Inclusion of the 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
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillac++11duplicateResolved as duplicate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions