------- Comment #2 from yuanfei8077 at gmail dot com  2006-09-28 01:50 -------
Hi,

For your convinence, the following is the reproduction code.

Many Thanks,
-Kelvin


Compilation error
=================
no matching function for call to tdat_hash_map<MemAllocator<int>
>::func(MemAllocator<int>)

main.cpp:6: note: candidates are: static void
tdat_hash_map<_AllocType>::func(_AllocType&) 
[with _AllocType = MemAllocator<int>]


Repro code
===========
template <class Type> class MemAllocator{};

template <class _AllocType> class tdat_hash_map {
public:
        typedef _AllocType _Alloc;
        static void func(_Alloc&) {};
};

int main()
{
        typedef tdat_hash_map<MemAllocator<int> > Map;
        Map::func((MemAllocator<int>) (MemAllocator<int>()));

        return 0;
}


-- 

yuanfei8077 at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |UNCONFIRMED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29252

Reply via email to