libstdc++/3036: pair constructor not updated per DR 265
kenny.simpson@gs.com
kenny.simpson@gs.com
Fri Jun 1 18:06:00 GMT 2001
>Number: 3036
>Category: libstdc++
>Synopsis: pair constructor not updated per DR 265
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jun 01 18:06:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: kenny.simpson@gs.com
>Release: 20010528 snapshot
>Organization:
>Environment:
source
>Description:
The constructor for pair has been changed, see:
http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/lwg-defects.html#265
in include/bits/stl_pair.h the old definition of
pair() : first(_T1()), second(_T2()) {}
exists, but this should now be
pair() : first(), second() {}
>How-To-Repeat:
>Fix:
remove _T1() and _T2() from pair's default constructor.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list