This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TDA2EG: Code doesn't compile with TI arm compiler

Part Number: TDA2EG

Tool/software: TI C/C++ Compiler

Hello,

I am stucked at a point where TI arm compiler not able to compile certain piece of code. However same code compiles fine with GCC arm.

TI arm compiler version -> ti-cgt-arm_16.9.2.LTS

gcc arm compiler version -> gcc-arm-none-eabi-4_9-2015q3

Build commond -> ./armcl.exe -c astl/source/stack_allocator.cpp -I astl/source/ -I astl/source/arch/cpp03/ -I ../include/


Errors: 

"../include/s__tree.h", line 257: error: no instance of constructor "std::priv::_STLP_alloc_proxy<_Value, _Tp, _MaybeReboundAlloc>::_STLP_alloc_proxy [with _Value=std::priv::_Rb_tree_node_base, _Tp=std::priv::_Rb_tree_node<std::pair<const std::size_t, astl::IAllocator *>>, _MaybeReboundAlloc=astl::Allocator<std::priv::_Rb_tree_node<std::pair<const std::size_t, astl::IAllocator *>>>]" matches the argument list
argument types are: (const astl::Allocator<std::pair<const std::size_t, astl::IAllocator *>>, std::priv::_Rb_tree_node_base)
detected during:
instantiation of "std::priv::_Rb_tree_base<_Tp, _Alloc>::_Rb_tree_base(const std::priv::_Rb_tree_base<_Tp, _Alloc>::allocator_type &) [with _Tp=std::pair<const std::size_t, astl::IAllocator *>, _Alloc=astl::Allocator<std::pair<const std::size_t, astl::IAllocator *>>]" at line 398
instantiation of "std::priv::_Rb_tree<_Key, _Compare, _Value, _KeyOfValue, _Traits, _Alloc>::_Rb_tree(const _Compare &, const std::priv::_Rb_tree<_Key, _Compare, _Value, _KeyOfValue, _Traits, _Alloc>::allocator_type &) [with _Key=std::size_t, _Compare=std::less<std::size_t>, _Value=std::pair<const std::size_t, astl::IAllocator *>, _KeyOfValue=std::priv::_Select1st<std::pair<const std::size_t, astl::IAllocator *>>, _Traits=std::priv::_MapTraitsT<std::pair<const std::size_t, astl::IAllocator *>>, _Alloc=astl::Allocator<std::pair<const std::size_t, astl::IAllocator *>>]" at line 115 of "../include/s__map.h"
instantiation of "std::map<_Key, _Tp, _Compare, _Alloc>::map(const _Compare &, const std::map<_Key, _Tp, _Compare, _Alloc>::allocator_type &) [with _Key=std::size_t, _Tp=astl::IAllocator *, _Compare=std::less<std::size_t>, _Alloc=astl::Allocator<std::pair<const std::size_t, astl::IAllocator *>>]" at line 103 of "astl/source/arch/cpp03/astl_containers.h"
instantiation of "astl::Map<_Kty, _Ty, _Pr>::Map(astl::IAllocator *) [with _Kty=std::size_t, _Ty=astl::IAllocator *, _Pr=std::less<std::size_t>]" at line 476 of "astl/source/pool_allocator.cpp"
1 error detected in the compilation of "astl/source/pool_allocator.cpp".

>> Compilation failure

Please check attached piece of code.astl.zip