[cfe-dev] include <new>

Дмитрий Дьяченко dimhen at gmail.com
Wed Jan 20 08:58:02 CST 2010


2010/1/20 Chris Lattner <clattner at apple.com>:
> applied in r93948, thanks

thanks.

But now i have next err.message (Fedora 10 / x86_64)

llvm$ clang++  -c tst.cpp
In file included from tst.cpp:1:
In file included from /usr/include/c++/4.3.2/iostream:44:
In file included from /usr/include/c++/4.3.2/ostream:44:
In file included from /usr/include/c++/4.3.2/ios:43:
In file included from /usr/include/c++/4.3.2/iosfwd:46:
In file included from /usr/include/c++/4.3.2/bits/postypes.h:46:
In file included from /usr/include/c++/4.3.2/cwchar:48:
/usr/include/c++/4.3.2/cstddef:47:15: fatal error: 'stddef.h' file not found
#include_next <stddef.h>
              ^
1 diagnostic generated.

llvm$ cat tst.cpp
#include <iostream>


Need i file PR ? Or i miss something trivial with configure/run clang++ ?

If i add -I/usr/include/linux, then more errs happens

clang++ -I/usr/include/linux -c tst.cpp
In file included from tst.cpp:1:
In file included from /usr/include/c++/4.3.2/iostream:44:
In file included from /usr/include/c++/4.3.2/ostream:44:
In file included from /usr/include/c++/4.3.2/ios:43:
In file included from /usr/include/c++/4.3.2/iosfwd:46:
In file included from /usr/include/c++/4.3.2/bits/postypes.h:46:
In file included from /usr/include/c++/4.3.2/cwchar:48:
/usr/include/c++/4.3.2/cstddef:47:15: fatal error: 'stddef.h' file not found
#include_next <stddef.h>
              ^
clang: DeclBase.cpp:420: void clang::Decl::CheckAccessDeclContext()
const: Assertion `Access != AS_none && "Access specifier is AS_none
inside a record decl"' failed.
[...]

Dmitry


More information about the cfe-dev mailing list