public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/16020] New: [3.4/3.5 regression] cannot copy __gnu_debug::bitset
@ 2004-06-16 12:12 redi at gcc dot gnu dot org
2004-06-16 14:03 ` [Bug libstdc++/16020] " bangerth at dealii dot org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: redi at gcc dot gnu dot org @ 2004-06-16 12:12 UTC (permalink / raw)
To: gcc-bugs
This is a FAIL when running the libstdc++ testsuite with -D_GLIBCXX_DEBUG.
testsuite/23_containers/bitset/operations/1.cc fails to link because
bitset inherits from _Safe_sequence_base, which has protected but
undefined copy ctor and op=, due to this change:
2004-05-22 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/12854
Fixups for -Weffc++.
[snip]
* include/debug/safe_base.h (_Safe_sequence_base): Declare copy
constructor and assignment operator protected.
(_Safe_iterator_base): Same.
* include/debug/formatter.h (_Error_formatter): Define copy
constructor and assignment operator.
Simplified, the test case is:
#define _GLIBCXX_DEBUG
#include <bitset>
int main()
{
std::bitset<5> b;
std::bitset<5> bb(b);
b = bb;
}
This gets undefined references with recent CVS builds of 3.4 or 3.5
My copies of the standard are packed away so I can't check whether bitset
should be copy constructible and assignable.
Dinkumware's docs and the last public draft standard seem to say no (are
the copy ctor and op= implied?) while SGI's docs, the v3 sources and
Comeau say yes (which is good enough for me).
So I think we should define those members for _Safe_sequence_base.
--
Summary: [3.4/3.5 regression] cannot copy __gnu_debug::bitset
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: redi at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16020
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/16020] [3.4/3.5 regression] cannot copy __gnu_debug::bitset
2004-06-16 12:12 [Bug libstdc++/16020] New: [3.4/3.5 regression] cannot copy __gnu_debug::bitset redi at gcc dot gnu dot org
@ 2004-06-16 14:03 ` bangerth at dealii dot org
2004-06-16 17:59 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bangerth at dealii dot org @ 2004-06-16 14:03 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-06-16 14:03 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-06-16 14:03:22
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16020
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/16020] [3.4/3.5 regression] cannot copy __gnu_debug::bitset
2004-06-16 12:12 [Bug libstdc++/16020] New: [3.4/3.5 regression] cannot copy __gnu_debug::bitset redi at gcc dot gnu dot org
2004-06-16 14:03 ` [Bug libstdc++/16020] " bangerth at dealii dot org
@ 2004-06-16 17:59 ` pinskia at gcc dot gnu dot org
2004-06-18 11:08 ` pcarlini at suse dot de
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-16 17:59 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |3.4.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16020
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/16020] [3.4/3.5 regression] cannot copy __gnu_debug::bitset
2004-06-16 12:12 [Bug libstdc++/16020] New: [3.4/3.5 regression] cannot copy __gnu_debug::bitset redi at gcc dot gnu dot org
2004-06-16 14:03 ` [Bug libstdc++/16020] " bangerth at dealii dot org
2004-06-16 17:59 ` pinskia at gcc dot gnu dot org
@ 2004-06-18 11:08 ` pcarlini at suse dot de
2004-06-18 16:39 ` bkoz at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pcarlini at suse dot de @ 2004-06-18 11:08 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pcarlini at suse dot de
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16020
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/16020] [3.4/3.5 regression] cannot copy __gnu_debug::bitset
2004-06-16 12:12 [Bug libstdc++/16020] New: [3.4/3.5 regression] cannot copy __gnu_debug::bitset redi at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-06-18 11:08 ` pcarlini at suse dot de
@ 2004-06-18 16:39 ` bkoz at gcc dot gnu dot org
2004-06-18 17:14 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2004-06-18 16:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bkoz at gcc dot gnu dot org 2004-06-18 16:39 -------
> (are the copy ctor and op= implied?)
Yes, unless explicitly denied.
-benjamin
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16020
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/16020] [3.4/3.5 regression] cannot copy __gnu_debug::bitset
2004-06-16 12:12 [Bug libstdc++/16020] New: [3.4/3.5 regression] cannot copy __gnu_debug::bitset redi at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-06-18 16:39 ` bkoz at gcc dot gnu dot org
@ 2004-06-18 17:14 ` cvs-commit at gcc dot gnu dot org
2004-06-18 17:29 ` [Bug libstdc++/16020] [3.4 " pcarlini at suse dot de
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-18 17:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-06-18 17:13 -------
Subject: Bug 16020
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: paolo@gcc.gnu.org 2004-06-18 17:13:36
Modified files:
libstdc++-v3 : ChangeLog
libstdc++-v3/include/debug: safe_base.h
Added files:
libstdc++-v3/testsuite/23_containers/bitset/cons: 16020.cc
Log message:
2004-06-18 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/16020
* include/debug/safe_base.h
(_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
_Safe_sequence_base::operator=): Provide definitions.
* testsuite/23_containers/bitset/cons/16020.cc: New.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&r1=1.2523&r2=1.2524
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/debug/safe_base.h.diff?cvsroot=gcc&r1=1.3&r2=1.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/23_containers/bitset/cons/16020.cc.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16020
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/16020] [3.4 regression] cannot copy __gnu_debug::bitset
2004-06-16 12:12 [Bug libstdc++/16020] New: [3.4/3.5 regression] cannot copy __gnu_debug::bitset redi at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-06-18 17:14 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-18 17:29 ` pcarlini at suse dot de
2004-06-18 21:56 ` cvs-commit at gcc dot gnu dot org
2004-06-18 21:57 ` pcarlini at suse dot de
7 siblings, 0 replies; 9+ messages in thread
From: pcarlini at suse dot de @ 2004-06-18 17:29 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|[3.4/3.5 regression] cannot |[3.4 regression] cannot copy
|copy __gnu_debug::bitset |__gnu_debug::bitset
Target Milestone|3.4.2 |3.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16020
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/16020] [3.4 regression] cannot copy __gnu_debug::bitset
2004-06-16 12:12 [Bug libstdc++/16020] New: [3.4/3.5 regression] cannot copy __gnu_debug::bitset redi at gcc dot gnu dot org
` (5 preceding siblings ...)
2004-06-18 17:29 ` [Bug libstdc++/16020] [3.4 " pcarlini at suse dot de
@ 2004-06-18 21:56 ` cvs-commit at gcc dot gnu dot org
2004-06-18 21:57 ` pcarlini at suse dot de
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-18 21:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-06-18 21:56 -------
Subject: Bug 16020
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: paolo@gcc.gnu.org 2004-06-18 21:56:14
Modified files:
libstdc++-v3 : ChangeLog
libstdc++-v3/include/debug: safe_base.h
Added files:
libstdc++-v3/testsuite/23_containers/bitset/cons: 16020.cc
Log message:
2004-06-18 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/16020
* include/debug/safe_base.h
(_Safe_sequence_base::_Safe_sequence_base(const _Safe_sequence_base&),
_Safe_sequence_base::operator=): Provide definitions.
* testsuite/23_containers/bitset/cons/16020.cc: New.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.2224.2.127&r2=1.2224.2.128
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/debug/safe_base.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.2.8.1&r2=1.2.8.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/23_containers/bitset/cons/16020.cc.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16020
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/16020] [3.4 regression] cannot copy __gnu_debug::bitset
2004-06-16 12:12 [Bug libstdc++/16020] New: [3.4/3.5 regression] cannot copy __gnu_debug::bitset redi at gcc dot gnu dot org
` (6 preceding siblings ...)
2004-06-18 21:56 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-18 21:57 ` pcarlini at suse dot de
7 siblings, 0 replies; 9+ messages in thread
From: pcarlini at suse dot de @ 2004-06-18 21:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pcarlini at suse dot de 2004-06-18 21:57 -------
Fixed for 3.4.1.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16020
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2004-06-18 21:57 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-16 12:12 [Bug libstdc++/16020] New: [3.4/3.5 regression] cannot copy __gnu_debug::bitset redi at gcc dot gnu dot org
2004-06-16 14:03 ` [Bug libstdc++/16020] " bangerth at dealii dot org
2004-06-16 17:59 ` pinskia at gcc dot gnu dot org
2004-06-18 11:08 ` pcarlini at suse dot de
2004-06-18 16:39 ` bkoz at gcc dot gnu dot org
2004-06-18 17:14 ` cvs-commit at gcc dot gnu dot org
2004-06-18 17:29 ` [Bug libstdc++/16020] [3.4 " pcarlini at suse dot de
2004-06-18 21:56 ` cvs-commit at gcc dot gnu dot org
2004-06-18 21:57 ` pcarlini at suse dot de
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).