This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: [Bug libstdc++/71640] [7 Regression] include/c++/7.0.0/bits/hashtable.h:293:7: error: too many template parameters in template redeclaration


Trivial attached patch applied to fix this regression. I am surprised that gcc had not detected it.

2016-06-27  FranÃois Dumont  <fdumont@gcc.gnu.org>

    PR libstdc++/71640
    * include/bits/hashtable.h: Remove _Unique_keya parameter in _Insert
    friend declaration.


On 26/06/2016 18:21, pinskia at gcc dot gnu.org wrote:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71640

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

            What    |Removed                     |Added
----------------------------------------------------------------------------
    Target Milestone|---                         |7.0


Index: include/bits/hashtable.h
===================================================================
--- include/bits/hashtable.h	(revision 237802)
+++ include/bits/hashtable.h	(working copy)
@@ -294,7 +294,7 @@
 	       typename _ExtractKeya, typename _Equala,
 	       typename _H1a, typename _H2a, typename _Hasha,
 	       typename _RehashPolicya, typename _Traitsa,
-	       bool _Constant_iteratorsa, bool _Unique_keysa>
+	       bool _Constant_iteratorsa>
 	friend struct __detail::_Insert;
 
     public:

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