[cfe-dev] problems compiling clang: ASTOwningResult
Douglas Gregor
dgregor at apple.com
Mon Dec 15 13:37:59 PST 2008
On Dec 15, 2008, at 3:33 PM, Chris Goller wrote:
> I've been having problems compiling clang for the last several days
> and I'm up-to-date with subversion.
>
> The specific problem I am having is that ASTOwningResult doesn't
> have a public copy constructor nor a operator=:
>
> ASTOwningResult(ASTOwningResult&); // DO NOT IMPLEMENT
> ASTOwningResult& operator =(ASTOwningResult&); // DO NOT IMPLEMENT
>
> ... however, there is a bunch of code in the parser that tries to do
> an operator=, for example,
> ParseDecl.cpp:1080 AssignedVal = ParseConstantExpression();
>
> where Parser::OwningExprResult Parser::ParseConstantExpression() and
> OwningExprResult AssignedVal(Actions);
>
> and finally typedef ASTOwningResult<&ActionBase::DeleteExpr>
> OwningExprResult;
What compiler are you using? We've seen some issues like this with
Visual C++.
- Doug
More information about the cfe-dev
mailing list