If the operator[] overloading in ilist.h is commented, it compiles. Where is the ilist::operator[] defined then?<br>I cannot find it in std::iterator.<br><br><div class="gmail_quote">On Mon, Jul 14, 2008 at 4:48 PM, David Chisnall <<a href="mailto:csdavec@swansea.ac.uk">csdavec@swansea.ac.uk</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">CGObjCEtoile.cpp is quite badly bit-rotted at this stage. I would recommend deleting it from svn, and I will submit a new version soon.<br>
<br>
David<div><div></div><div class="Wj3C7c"><br>
<br>
On 14 Jul 2008, at 09:16, Zhongxing Xu wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">
svn rev 53524<br>
<br>
Compilation fails:<br>
<br>
CGObjCEtoile.cpp: In member function 'virtual llvm::Function*<unnamed>::CGObjCEtoile::MethodPreamble(const std::string&, const std::string&, const std::string&, const llvm::Type*, const llvm::Type*, const llvm::Type**, unsigned int, bool, bool)':<br>
CGObjCEtoile.cpp:240: error: ambiguous overload for 'operator[]' in 'AI[0]'<br>
CGObjCEtoile.cpp:240: note: candidates are: operator[](llvm::Argument*, int) <built-in><br>
/home/xzx/llvm/include/llvm/ADT/ilist.h:98: note: void llvm::ilist_iterator<NodeTy>::operator[](unsigned int) [with NodeTy = llvm::Argument]<br>
/home/xzx/llvm/include/llvm/ADT/ilist.h:99: note: void llvm::ilist_iterator<NodeTy>::operator[](unsigned int) const [with NodeTy = llvm::Argument]<br>
CGObjCEtoile.cpp:241: error: ambiguous overload for 'operator[]' in 'AI[1]'<br>
CGObjCEtoile.cpp:241: note: candidates are: operator[](llvm::Argument*, int) <built-in><br>
/home/xzx/llvm/include/llvm/ADT/ilist.h:98: note: void llvm::ilist_iterator<NodeTy>::operator[](unsigned int) [with NodeTy = llvm::Argument]<br>
/home/xzx/llvm/include/llvm/ADT/ilist.h:99: note: void llvm::ilist_iterator<NodeTy>::operator[](unsigned int) const [with NodeTy = llvm::Argument]<br>
make[2]: *** [/home/xzx/llvm/tools/clang/lib/CodeGen/Debug/CGObjCEtoile.o] Error 1<br>
make[2]: Leaving directory `/home/xzx/llvm/tools/clang/lib/CodeGen'<br>
make[1]: *** [CodeGen/.makeall] Error 2<br>
make[1]: Leaving directory `/home/xzx/llvm/tools/clang/lib'<br>
make: *** [all] Error 1<br>
<br>
<br></div></div>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote>
<br>
</blockquote></div><br>