From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9384 invoked by alias); 13 Mar 2008 10:47:41 -0000 Received: (qmail 8941 invoked by uid 48); 13 Mar 2008 10:46:58 -0000 Date: Thu, 13 Mar 2008 10:47:00 -0000 Subject: [Bug c++/35566] New: multiset constructor uses insert_unique instead of insert_equal! X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "dennis dot czeremin at smiths-heimann dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-03/txt/msg00968.txt.bz2 Using the constructor of a multimap with 2 input iterators does not insert multible keys any longer (gcc-4.2.3 had done it) fix: Replace insert_unique with insert_equal in /usr/local/gcc-4.3.0/include/c++/4.3.0/bits/stl_multimap.h: 190- * @param first An input iterator. 191- * @param last An input iterator. 192- * 193- * Create a %multimap consisting of copies of the elements from 194- * [first,last). This is linear in N if the range is already sorted, 195- * and NlogN otherwise (where N is distance(first,last)). 196- */ 197- template 198- multimap(_InputIterator __first, _InputIterator __last) 199- : _M_t() 200: { _M_t._M_insert_unique(__first, __last); } -- Summary: multiset constructor uses insert_unique instead of insert_equal! Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dennis dot czeremin at smiths-heimann dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35566