[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-devel
Subject: Re: gcc 2.95.3 problems with kdevelop cvs
From: Roberto Raggi <raggi () cli ! di ! unipi ! it>
Date: 2002-12-10 19:38:11
[Download RAW message or body]
Hi Ian,
On Tuesday 10 December 2002 18:53, Ian Reinhart Geiser wrote:
> Greetings I get this error with gcc 2.95.3 on SuSE
> /home/geiseri/SNAPSHOTS/cvs-local/kdevelop/parts/cppsupport/parser.cpp:297:
> no match for `auto_ptr<NameAST> & = auto_ptr<NameAST>'
> /usr/include/g++/memory:40: candidates are: class
> auto_ptr<NameAST> & auto_ptr<NameAST>::operator
> =(auto_ptr<NameAST> &) <near match>
> /usr/include/g++/memory:48: class
> auto_ptr<NameAST> & auto_ptr<NameAST>::operator
> =<NameAST>(auto_ptr<NameAST> &) <near match>
> /home/geiseri/SNAPSHOTS/cvs-local/kdevelop/parts/cppsupport/parser.cpp:
> In method `bool
> Parser::parseTranslationUnit(auto_ptr<TranslationUnitAST>
please, can you see if the attached patch solve the problem?
ciao robe
["cppsupport.diff" (text/x-diff)]
? parser.loT
Index: parser.cpp
===================================================================
RCS file: /home/kde/kdevelop/parts/cppsupport/parser.cpp,v
retrieving revision 1.34
diff -u -r1.34 parser.cpp
--- parser.cpp 8 Dec 2002 21:08:45 -0000 1.34
+++ parser.cpp 10 Dec 2002 19:33:51 -0000
@@ -294,11 +294,12 @@
if( parseUnqualifiedName(unqualifedName) ){
//kdDebug(9007) << "--- tok = " << lex->lookAhead(0).toString() << " -- " \
<< "----------> name parsed!!" << endl;
- node = CreateNode<NameAST>();
- node->setGlobal( isGlobal );
- node->setNestedName( nestedName );
- node->setUnqualifedName( unqualifedName );
- UPDATE_POS( node, start, lex->index() );
+ NameAST::Node ast = CreateNode<NameAST>();
+ ast->setGlobal( isGlobal );
+ ast->setNestedName( nestedName );
+ ast->setUnqualifedName( unqualifedName );
+ UPDATE_POS( ast, start, lex->index() );
+ node = ast;
return true;
}
_______________________________________________
Kdevelop-devel mailing list
Kdevelop-devel@barney.cs.uni-potsdam.de
http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic