This is the mail archive of the gcc-bugs@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]

libstdc++/4541: raw_storage_iterator::operator= should call _Construct, not construct



>Number:         4541
>Category:       libstdc++
>Synopsis:       raw_storage_iterator::operator= should call _Construct, not construct
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 11 07:16:03 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Brendan Kehoe
>Release:        CVS tree
>Organization:
>Environment:

>Description:
In bits/stl_raw_storage_iter.h, raw_storage_iterator includes an operator= that is attempting to call `construct'.  It should actually be calling `_Construct' as offered by stl_construct.h.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="diffs-raw_storage_iter.txt"
Content-Disposition: inline; filename="diffs-raw_storage_iter.txt"

2001-10-10  Brendan Kehoe  <brendan@zen.org>

	* bits/stl_raw_storage_iter.h (operator=): Fix to call _Construct
	instead of construct.

Index: include/bits/stl_raw_storage_iter.h
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/include/bits/stl_raw_storage_iter.h,v
retrieving revision 1.6
diff -u -p -r1.6 stl_raw_storage_iter.h
--- stl_raw_storage_iter.h	2001/06/27 17:09:52	1.6
+++ stl_raw_storage_iter.h	2001/10/10 11:44:32
@@ -79,7 +79,7 @@ namespace std
       raw_storage_iterator& 
       operator=(const _Tp& __element) 
       {
-	construct(&*_M_iter, __element);
+	_Construct(&*_M_iter, __element);
 	return *this;
       }        
 


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