[cfe-dev] problems compiling clang: ASTOwningResult

Chris Goller goller at gmail.com
Mon Dec 15 13:52:24 PST 2008


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20081215/0b91f8b7/attachment.html>


More information about the cfe-dev mailing list