public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/14648] New: hash_maps are broken (regression)
@ 2004-03-19 8:53 schmid at snake dot iap dot physik dot tu-darmstadt dot de
2004-03-19 10:06 ` [Bug libstdc++/14648] rope is " pcarlini at suse dot de
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: schmid at snake dot iap dot physik dot tu-darmstadt dot de @ 2004-03-19 8:53 UTC (permalink / raw)
To: gcc-bugs
hash_maps no longer work. This is a regression with respect to gcc 3.4.0 built
last week.
Consider the following code:
source code th.C
#include <ext/hash_map>
#include <ext/rope>
using namespace std;
using namespace __gnu_cxx;
int hmap1_test(int, char**)
{
typedef hash_map<char, crope, hash<char>, equal_to<char> > maptype;
maptype m;
m['l'] = "50";
cout << "m['x'] = " << m['x'] << endl;
return 0;
}
g++ -v -W -Wall th.C
Reading specs from /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/specs
Configured with: ../gcc/configure --enable-threads=posix --enable-languages=c,c
++,f77,objc --enable-__cxa_atexit --enable-libstdcxx-debug
Thread model: posix
gcc version 3.4.0 20040319 (prerelease)
/usr/local/libexec/gcc/i686-pc-linux-gnu/3.4.0/cc1plus -quiet -v -D_GNU_SOURCE
th.C -quiet -dumpbase th.C -mtune=pentiumpro -auxbase th -W -Wall -version -o /
tmp/ccAyVpeT.s
ignoring nonexistent directory "NONE/include"
ignoring nonexistent directory "/usr/local/lib/gcc/
i686-pc-linux-gnu/3.4.0/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/
i686-pc-linux-gnu
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/
backward
/usr/local/include
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/include
/usr/include
End of search list.
GNU C++ version 3.4.0 20040319 (prerelease) (i686-pc-linux-gnu)
compiled by GNU C version 3.4.0 20040319 (prerelease).
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64274
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/ext/
ropeimpl.h: In static member function `static bool __gnu_cxx::rope<_CharT,
_Alloc>::_S_apply_to_pieces(__gnu_cxx::_Rope_char_consumer<_CharT>&, const
__gnu_cxx::_Rope_RopeRep<_CharT, _Alloc>*, size_t, size_t) [with _CharT = char,
_Alloc = std::allocator<char>]':
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/ext/
rope:1314: instantiated from `void __gnu_cxx::rope<_CharT,
_Alloc>::apply_to_pieces(size_t, size_t,
__gnu_cxx::_Rope_char_consumer<_CharT>&) const [with _CharT = char, _Alloc =
std::allocator<char>]'
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/ext/
ropeimpl.h:930: instantiated from `std::basic_ostream<_CharT, _Traits>&
__gnu_cxx::operator<<(std::basic_ostream<_CharT, _Traits>&, const
__gnu_cxx::rope<_CharT, _Alloc>&) [with _CharT = char, _Traits =
std::char_traits<char>, _Alloc = std::allocator<char>]'
th.C:13: instantiated from here
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/ext/
ropeimpl.h:877: error: cannot call member function `_Tp*
__gnu_cxx::new_allocator<_Tp>::allocate(size_t, const void*) [with _Tp = char]'
without object
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/ext/
rope:1314: instantiated from `void __gnu_cxx::rope<_CharT,
_Alloc>::apply_to_pieces(size_t, size_t,
__gnu_cxx::_Rope_char_consumer<_CharT>&) const [with _CharT = char, _Alloc =
std::allocator<char>]'
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/ext/
ropeimpl.h:930: instantiated from `std::basic_ostream<_CharT, _Traits>&
__gnu_cxx::operator<<(std::basic_ostream<_CharT, _Traits>&, const
__gnu_cxx::rope<_CharT, _Alloc>&) [with _CharT = char, _Traits =
std::char_traits<char>, _Alloc = std::allocator<char>]'
th.C:13: instantiated from here
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/ext/
ropeimpl.h:881: error: cannot call member function `void
__gnu_cxx::new_allocator<_Tp>::deallocate(_Tp*, size_t) [with _Tp = char]'
without object
/usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/ext/
ropeimpl.h:885: error: cannot call member function `void
__gnu_cxx::new_allocator<_Tp>::deallocate(_Tp*, size_t) [with _Tp = char]'
without object
--
Summary: hash_maps are broken (regression)
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: schmid at snake dot iap dot physik dot tu-darmstadt dot
de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14648
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/14648] rope is broken (regression)
2004-03-19 8:53 [Bug libstdc++/14648] New: hash_maps are broken (regression) schmid at snake dot iap dot physik dot tu-darmstadt dot de
@ 2004-03-19 10:06 ` pcarlini at suse dot de
2004-03-19 12:49 ` pcarlini at suse dot de
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pcarlini at suse dot de @ 2004-03-19 10:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pcarlini at suse dot de 2004-03-19 10:06 -------
The problem is with rope, not with hash_map, lower priority.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|hash_maps are broken |rope is broken (regression)
|(regression) |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14648
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/14648] rope is broken (regression)
2004-03-19 8:53 [Bug libstdc++/14648] New: hash_maps are broken (regression) schmid at snake dot iap dot physik dot tu-darmstadt dot de
2004-03-19 10:06 ` [Bug libstdc++/14648] rope is " pcarlini at suse dot de
@ 2004-03-19 12:49 ` pcarlini at suse dot de
2004-03-19 14:17 ` [Bug libstdc++/14648] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pcarlini at suse dot de @ 2004-03-19 12:49 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pcarlini at suse dot de
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-03-19 12:49:37
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14648
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/14648] [3.4/3.5 Regression] rope is broken (regression)
2004-03-19 8:53 [Bug libstdc++/14648] New: hash_maps are broken (regression) schmid at snake dot iap dot physik dot tu-darmstadt dot de
2004-03-19 10:06 ` [Bug libstdc++/14648] rope is " pcarlini at suse dot de
2004-03-19 12:49 ` pcarlini at suse dot de
@ 2004-03-19 14:17 ` pinskia at gcc dot gnu dot org
2004-03-19 16:08 ` cvs-commit at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-19 14:17 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Summary|rope is broken (regression) |[3.4/3.5 Regression] rope is
| |broken (regression)
Target Milestone|--- |3.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14648
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/14648] [3.4/3.5 Regression] rope is broken (regression)
2004-03-19 8:53 [Bug libstdc++/14648] New: hash_maps are broken (regression) schmid at snake dot iap dot physik dot tu-darmstadt dot de
` (2 preceding siblings ...)
2004-03-19 14:17 ` [Bug libstdc++/14648] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-03-19 16:08 ` cvs-commit at gcc dot gnu dot org
2004-03-19 16:11 ` [Bug libstdc++/14648] [3.4 " pcarlini at suse dot de
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-19 16:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-03-19 16:08 -------
Subject: Bug 14648
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: paolo@gcc.gnu.org 2004-03-19 16:08:15
Modified files:
libstdc++-v3 : ChangeLog
libstdc++-v3/include/ext: ropeimpl.h
Added files:
libstdc++-v3/testsuite/ext: 14648.cc
Log message:
2004-03-19 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/14648
* include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
memory allocation/deallocation calls.
* testsuite/ext/14648.cc: New.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&r1=1.2408&r2=1.2409
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/ext/ropeimpl.h.diff?cvsroot=gcc&r1=1.25&r2=1.26
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/ext/14648.cc.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14648
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/14648] [3.4 Regression] rope is broken (regression)
2004-03-19 8:53 [Bug libstdc++/14648] New: hash_maps are broken (regression) schmid at snake dot iap dot physik dot tu-darmstadt dot de
` (3 preceding siblings ...)
2004-03-19 16:08 ` cvs-commit at gcc dot gnu dot org
@ 2004-03-19 16:11 ` pcarlini at suse dot de
2004-03-19 16:27 ` mark at codesourcery dot com
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pcarlini at suse dot de @ 2004-03-19 16:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pcarlini at suse dot de 2004-03-19 16:11 -------
Mark, ok for 3.4.0 too? Without it code using rope doesn't compile.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |mmitchel at gcc dot gnu dot
| |org
Summary|[3.4/3.5 Regression] rope is|[3.4 Regression] rope is
|broken (regression) |broken (regression)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14648
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/14648] [3.4 Regression] rope is broken (regression)
2004-03-19 8:53 [Bug libstdc++/14648] New: hash_maps are broken (regression) schmid at snake dot iap dot physik dot tu-darmstadt dot de
` (4 preceding siblings ...)
2004-03-19 16:11 ` [Bug libstdc++/14648] [3.4 " pcarlini at suse dot de
@ 2004-03-19 16:27 ` mark at codesourcery dot com
2004-03-19 16:37 ` cvs-commit at gcc dot gnu dot org
2004-03-19 16:38 ` pcarlini at suse dot de
7 siblings, 0 replies; 9+ messages in thread
From: mark at codesourcery dot com @ 2004-03-19 16:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mark at codesourcery dot com 2004-03-19 16:27 -------
Subject: Re: [3.4 Regression] rope is broken (regression)
pcarlini at suse dot de wrote:
>------- Additional Comments From pcarlini at suse dot de 2004-03-19 16:11 -------
>Mark, ok for 3.4.0 too? Without it code using rope doesn't compile.
>
>
>
OK for 3.4.0.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14648
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/14648] [3.4 Regression] rope is broken (regression)
2004-03-19 8:53 [Bug libstdc++/14648] New: hash_maps are broken (regression) schmid at snake dot iap dot physik dot tu-darmstadt dot de
` (5 preceding siblings ...)
2004-03-19 16:27 ` mark at codesourcery dot com
@ 2004-03-19 16:37 ` cvs-commit at gcc dot gnu dot org
2004-03-19 16:38 ` pcarlini at suse dot de
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-19 16:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-03-19 16:37 -------
Subject: Bug 14648
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: paolo@gcc.gnu.org 2004-03-19 16:37:21
Modified files:
libstdc++-v3 : ChangeLog
libstdc++-v3/include/ext: ropeimpl.h
Added files:
libstdc++-v3/testsuite/ext: 14648.cc
Log message:
2004-03-19 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/14648
* include/ext/ropeimpl.h (rope<>::_S_apply_to_pieces): Fix
memory allocation/deallocation calls.
* testsuite/ext/14648.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.64&r2=1.2224.2.65
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/ext/ropeimpl.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.23.4.2&r2=1.23.4.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/ext/14648.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=14648
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/14648] [3.4 Regression] rope is broken (regression)
2004-03-19 8:53 [Bug libstdc++/14648] New: hash_maps are broken (regression) schmid at snake dot iap dot physik dot tu-darmstadt dot de
` (6 preceding siblings ...)
2004-03-19 16:37 ` cvs-commit at gcc dot gnu dot org
@ 2004-03-19 16:38 ` pcarlini at suse dot de
7 siblings, 0 replies; 9+ messages in thread
From: pcarlini at suse dot de @ 2004-03-19 16:38 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pcarlini at suse dot de 2004-03-19 16:38 -------
Fixed for 3.4.0.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|3.4.1 |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14648
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2004-03-19 16:38 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-19 8:53 [Bug libstdc++/14648] New: hash_maps are broken (regression) schmid at snake dot iap dot physik dot tu-darmstadt dot de
2004-03-19 10:06 ` [Bug libstdc++/14648] rope is " pcarlini at suse dot de
2004-03-19 12:49 ` pcarlini at suse dot de
2004-03-19 14:17 ` [Bug libstdc++/14648] [3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
2004-03-19 16:08 ` cvs-commit at gcc dot gnu dot org
2004-03-19 16:11 ` [Bug libstdc++/14648] [3.4 " pcarlini at suse dot de
2004-03-19 16:27 ` mark at codesourcery dot com
2004-03-19 16:37 ` cvs-commit at gcc dot gnu dot org
2004-03-19 16:38 ` 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).