[cfe-dev] problems compiling clang: ASTOwningResult

steve naroff snaroff at apple.com
Mon Dec 15 13:55:10 PST 2008


fyi...I believe this option is already enabled if you use cmake.

snaroff

On Dec 15, 2008, at 4:52 PM, Chris Goller wrote:

> I was using msvc2008... Doug figured it out for me.  He had me turn  
> on /Za.
>
> Happy Hacking,
>
> Chris
>
> On Mon, Dec 15, 2008 at 3:37 PM, Douglas Gregor <dgregor at apple.com>  
> wrote:
>
> 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
>
>
>
> -- 
> "Like a poet has to write poetry, I wake up in the morning and I  
> have to write a computer program." -- Knuth
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20081215/ec5680d9/attachment.html>


More information about the cfe-dev mailing list