This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Possible compilation failure in tr1/hashtable?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I don't know if this is a bug, but I spotted it with ICC. It is about a
friend declaration in tr1/hashtable, which references a struct declared
in tr1/hashtable_policy.h with a different number of template arguments.
This problem (?) is present in gcc 4.2.2. Patch attached.

Sorry in advance if this is already known/not a bug. Best regards,

  Francesco.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.8 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkeEO5MACgkQFCtI0YdDCEsS3wCgmjWahSz4rKo3cQAbIbuHU/is
JPkAoIUhNVcIytlVPhn0Pd35c+pf/bPZ
=CjAD
-----END PGP SIGNATURE-----
--- tr1/hashtable.orig	2007-12-31 14:26:38.000000000 +0100
+++ tr1/hashtable	2008-01-09 03:22:40.000000000 +0100
@@ -178,9 +178,9 @@
 						  __cache_hash_code>
                                                           const_iterator;
 
-      template<typename _Key2, typename _Pair, typename _Hashtable>
-        friend struct __detail::_Map_base;
-
+      template<typename _Key2, typename _Value2, typename _Ex2,
+    						  bool __unique2,typename _Hashtable2>
+							  friend struct __detail::_Map_base;
     private:
       typedef __detail::_Hash_node<_Value, __cache_hash_code> _Node;
       typedef typename _Allocator::template rebind<_Node>::other

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]