From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gabriel Dos Reis To: egcs@cygnus.com Subject: [egcs-971114] invalid member template declaration ? Date: Sun, 30 Nov 1997 08:38:00 -0000 Message-id: <199711301629.RAA16372@piano.dptmaths.ens-cachan.fr> X-SW-Source: 1997-11/msg00977.html Hi all ! Consider : % cat toto.C template class allocator; template<> class allocator { public: typedef void* pointer; typedef const void* const_pointer; typedef void value_type; template struct rebind { typedef allocator other; }; }; % g++ -c toto.C toto.C:9: invalid member template declaration % g++ --version; uname -a egcs-2.90.17 971114 (gcc2-970802 experimental) SunOS piano 5.5 Generic_103093-14 sun4m sparc SUNW,SPARCstation-20 What am I missing about this diagnostic ? I recall this fraction of code is that in CD2 regarding specialization for allocator. -- gaby Gabriel Dos Reis | École Normale Supérieure de Cachan INRIA, Unité de Recherche de | Centre de Mathématiques et de Leurs Sophia Antipolis | Applications Projet SAFIR | Équipe de Géométrie