public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/4541: raw_storage_iterator::operator= should call _Construct, not construct
@ 2001-10-20 19:00 rodrigc
  0 siblings, 0 replies; 2+ messages in thread
From: rodrigc @ 2001-10-20 19:00 UTC (permalink / raw)
  To: brendan, gcc-bugs, gcc-prs, nobody

Synopsis: raw_storage_iterator::operator= should call _Construct, not construct

State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Sat Oct 20 19:00:48 2001
State-Changed-Why:
    Patch applied.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4541&database=gcc


^ permalink raw reply	[flat|nested] 2+ messages in thread

* libstdc++/4541: raw_storage_iterator::operator= should call _Construct, not construct
@ 2001-10-11  7:16 brendan
  0 siblings, 0 replies; 2+ messages in thread
From: brendan @ 2001-10-11  7:16 UTC (permalink / raw)
  To: gcc-gnats

>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;
       }        
 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-10-20 19:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-20 19:00 libstdc++/4541: raw_storage_iterator::operator= should call _Construct, not construct rodrigc
  -- strict thread matches above, loose matches on Subject: below --
2001-10-11  7:16 brendan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).