Templates as Template Parameter

Haakon Innerdal hakoni@funcom.com
Wed Jun 17 09:20:00 GMT 1998


Working environment
egcs-2.91.40 snapshot-19980608
glibc2.0.6
stl-headers provided by egcs-distribution.

Accidentily stumbled about an internal compiler error when i tried this:

----
#include <map>

template<class Key, 
         class Value, 
         template<class, class > class MapT> 
class base 
{
  
};

// specialization
template<class Key, class Value>
class base<Key, Value, map<int, int > >
{
  
};
-----
Using set/multiset/multimap in the specialization produced the same fault,
but using "pair" compiled just fine...


--
HÃ¥kon Innerdal, Programmer, FunCom Oslo AS,
<hakoni@funcom.com>




More information about the Gcc-bugs mailing list