[cfe-dev] svn does not compile

Zhongxing Xu mymlreader at gmail.com
Mon Jul 14 05:23:50 PDT 2008


If the operator[] overloading in ilist.h is commented, it compiles. Where is
the ilist::operator[] defined then?
I cannot find it in std::iterator.

On Mon, Jul 14, 2008 at 4:48 PM, David Chisnall <csdavec at swansea.ac.uk>
wrote:

> 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.
>
> David
>
>
> On 14 Jul 2008, at 09:16, Zhongxing Xu wrote:
>
>  svn rev 53524
>>
>> Compilation fails:
>>
>> 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)':
>> CGObjCEtoile.cpp:240: error: ambiguous overload for 'operator[]' in
>> 'AI[0]'
>> CGObjCEtoile.cpp:240: note: candidates are: operator[](llvm::Argument*,
>> int) <built-in>
>> /home/xzx/llvm/include/llvm/ADT/ilist.h:98: note:                 void
>> llvm::ilist_iterator<NodeTy>::operator[](unsigned int) [with NodeTy =
>> llvm::Argument]
>> /home/xzx/llvm/include/llvm/ADT/ilist.h:99: note:                 void
>> llvm::ilist_iterator<NodeTy>::operator[](unsigned int) const [with NodeTy =
>> llvm::Argument]
>> CGObjCEtoile.cpp:241: error: ambiguous overload for 'operator[]' in
>> 'AI[1]'
>> CGObjCEtoile.cpp:241: note: candidates are: operator[](llvm::Argument*,
>> int) <built-in>
>> /home/xzx/llvm/include/llvm/ADT/ilist.h:98: note:                 void
>> llvm::ilist_iterator<NodeTy>::operator[](unsigned int) [with NodeTy =
>> llvm::Argument]
>> /home/xzx/llvm/include/llvm/ADT/ilist.h:99: note:                 void
>> llvm::ilist_iterator<NodeTy>::operator[](unsigned int) const [with NodeTy =
>> llvm::Argument]
>> make[2]: *** [/home/xzx/llvm/tools/clang/lib/CodeGen/Debug/CGObjCEtoile.o]
>> Error 1
>> make[2]: Leaving directory `/home/xzx/llvm/tools/clang/lib/CodeGen'
>> make[1]: *** [CodeGen/.makeall] Error 2
>> make[1]: Leaving directory `/home/xzx/llvm/tools/clang/lib'
>> make: *** [all] Error 1
>>
>>
>> _______________________________________________
>> 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/20080714/0ba3a032/attachment.html>


More information about the cfe-dev mailing list