[cfe-dev] Clang 2.8 problems with 4.4.4. cstddef
Eric Christopher
echristo at apple.com
Thu Mar 31 15:43:41 PDT 2011
On Mar 31, 2011, at 2:55 PM, Gagan Gupta wrote:
> I am using Clang 2.8 and trying to parse C++ code.
> Clang is complaining about 4.4.4 cstddef. Error message is included below.
>
>
> In file included from /usr/include/c++/4.4.4/cstdlib:43:
> /usr/include/c++/4.4.4/cstddef:48:1: error: C++ requires a type
> specifier for all declarations
> tutorial7:
> /afs/cs.wisc.edu/p/prometheus/private/gagan2/tools/llvm/llvm2.8.source/tools/clang/lib/Frontend/TextDiagnosticPrinter.cpp:298:
> void
> clang::TextDiagnosticPrinter::EmitCaretDiagnostic(clang::SourceLocation,
> clang::CharSourceRange*, unsigned int, const clang::SourceManager&,
> const clang::FixItHint*, unsigned int, unsigned int, unsigned int,
> unsigned int, unsigned int): Assertion `LangOpts && "Unexpected
> diagnostic outside source file processing"' failed.
> Stack dump:
> 0. /usr/include/c++/4.4.4/cstddef:48:25: current parser token '('
>
>
> I would greatly appreciate any help with resolving the problem.
Try upgrading to the soon to be released 2.9 or file a bug with a preprocessed source file.
Thanks!
-eric
More information about the cfe-dev
mailing list