Trunk build failure at commit 206147, 206148, 206149

Chandler Carruth chandlerc at google.com
Sun Apr 13 23:45:22 PDT 2014


I'm actively looking at this. GCC is being... exceptionally difficult here.
The code is perfectly valid AFAICT, but GCC 4.7 rejects.


On Mon, Apr 14, 2014 at 7:15 AM, Jiangning Liu <liujiangning1 at gmail.com>wrote:

> Hi,
>
> Trunk build failure at commit 206147, 206148, 206149.
>
> In file included from
> /home/jialiu01/llvm/llvm/include/llvm/ADT/ArrayRef.h:15:0,
>                  from /home/jialiu01/llvm/llvm/include/llvm/ADT/APInt.h:19,
>                  from
> /home/jialiu01/llvm/llvm/include/llvm/ADT/APFloat.h:20,
>                  from /home/jialiu01/llvm/llvm/lib/Support/APFloat.cpp:15:
> /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h: In member
> function ‘void llvm::BumpPtrAllocatorImpl<AllocatorT, SlabSize,
> SizeThreshold>::PrintStats() const’:
> /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:206:69: error:
> default argument for template parameter for class enclosing ‘void
> llvm::printBumpPtrAllocatorStats(unsigned int, size_t, size_t)’
>          unsigned NumSlabs, size_t BytesAllocated, size_t TotalMemory);
>                                                                      ^
> /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h: At global scope:
> /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:289:30: error:
> wrong number of template arguments (0, should be 3)
>  typedef BumpPtrAllocatorImpl<> BumpPtrAllocator;
>                               ^
> /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:86:7: error:
> provided for ‘template<class AllocatorT, long unsigned int SlabSize, long
> unsigned int SizeThreshold> class llvm::BumpPtrAllocatorImpl’
>  class BumpPtrAllocatorImpl {
>        ^
> /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:289:48: error:
> invalid type in declaration before ‘;’ token
>  typedef BumpPtrAllocatorImpl<> BumpPtrAllocator;
>                                                 ^
> /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h: In member
> function ‘void llvm::SpecificBumpPtrAllocator<T>::DestroyAll()’:
> /home/jialiu01/llvm/llvm/include/llvm/Support/Allocator.h:314:29: error:
> request for member ‘Slabs’ in
> ‘((llvm::SpecificBumpPtrAllocator<T>*)this)->llvm::SpecificBumpPtrAllocator<T>::Allocator’,
> which is of non-class type ‘llvm::BumpPtrAllocator {aka int}’
>
> --
> Thanks,
> -Jiangning
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140414/3a556701/attachment.html>


More information about the llvm-commits mailing list