public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/7922: Problems with rope and hash_map
@ 2002-09-16 17:06 Peter Schmid
0 siblings, 0 replies; 4+ messages in thread
From: Peter Schmid @ 2002-09-16 17:06 UTC (permalink / raw)
To: ljrittle; +Cc: gcc-prs
The following reply was made to PR libstdc++/7922; it has been noted by GNATS.
From: Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
To: <ljrittle@gcc.gnu.org>, <gcc-bugs@gcc.gnu.org>, <gcc-prs@gcc.gnu.org>,
<ljrittle@gcc.gnu.org>, <nobody@gcc.gnu.org>, <gcc-gnats@gcc.gnu.org>
Cc:
Subject: Re: libstdc++/7922: Problems with rope and hash_map
Date: Tue, 17 Sep 2002 01:57:11 +0200 (CEST)
On 16 Sep 2002 ljrittle@gcc.gnu.org wrote:
> Synopsis: Problems with rope and hash_map
>
> Responsible-Changed-From-To: unassigned->ljrittle
> Responsible-Changed-By: ljrittle
> Responsible-Changed-When: Mon Sep 16 16:32:57 2002
> Responsible-Changed-Why:
> This looks like a familar issue...
> State-Changed-From-To: open->feedback
> State-Changed-By: ljrittle
> State-Changed-When: Mon Sep 16 16:32:57 2002
> State-Changed-Why:
> Please try uploaded patch (you can patch the installed
> version of the header to test it).
>
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7922
>
Your patch does fix the problem on my system. I suppose, as you suggest,
all other occurences of _CAllocator and _SAllocator should be changed in
the same fashion. Thank you for investigating and fixing the bug.
Peter Schmid
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: libstdc++/7922: Problems with rope and hash_map
@ 2002-09-16 20:02 ljrittle
0 siblings, 0 replies; 4+ messages in thread
From: ljrittle @ 2002-09-16 20:02 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, ljrittle, schmid
Synopsis: Problems with rope and hash_map
State-Changed-From-To: feedback->closed
State-Changed-By: ljrittle
State-Changed-When: Mon Sep 16 20:02:47 2002
State-Changed-Why:
g++ in -pedantic mode enforces (all/more) requirements
related to mandatory typename hints. Patch applied
to mainline and 3.2 branch (since regression).
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7922
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: libstdc++/7922: Problems with rope and hash_map
@ 2002-09-16 16:33 ljrittle
0 siblings, 0 replies; 4+ messages in thread
From: ljrittle @ 2002-09-16 16:33 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, ljrittle, nobody, schmid
Synopsis: Problems with rope and hash_map
Responsible-Changed-From-To: unassigned->ljrittle
Responsible-Changed-By: ljrittle
Responsible-Changed-When: Mon Sep 16 16:32:57 2002
Responsible-Changed-Why:
This looks like a familar issue...
State-Changed-From-To: open->feedback
State-Changed-By: ljrittle
State-Changed-When: Mon Sep 16 16:32:57 2002
State-Changed-Why:
Please try uploaded patch (you can patch the installed
version of the header to test it).
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7922
^ permalink raw reply [flat|nested] 4+ messages in thread
* libstdc++/7922: Problems with rope and hash_map
@ 2002-09-15 15:56 Peter Schmid
0 siblings, 0 replies; 4+ messages in thread
From: Peter Schmid @ 2002-09-15 15:56 UTC (permalink / raw)
To: gcc-gnats
>Number: 7922
>Category: libstdc++
>Synopsis: Problems with rope and hash_map
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Sep 15 15:56:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Peter Schmid
>Release: 3.3 20020914 (experimental)
>Organization:
TU Darmstadt
>Environment:
System: Linux kiste 2.4.18 #8 Sat Mar 9 15:33:15 CET 2002 i686 unknown
Architecture: i686
GNU ld version 2.13.90.0.4 20020814
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc/configure --enable-shared --disable-nls --enable-threads=posix --enable-languages=c,c++,f77,objc --enable-__cxa_atexit
>Description:
The following code does no longer compile when -pedantic is given on
the command line. This is a regression with respect to previous
versions of gcc.
>How-To-Repeat:
source code thmap.C
#include <ext/hash_map>
#include <ext/rope>
int main()
{
using namespace std;
using namespace __gnu_cxx;
typedef hash_map<char, crope, hash<char>, equal_to<char> > maptype;
maptype m;
m['a'] = "42";
}
Compiling thmap.C with -pedantic
g++ -v -pedantic thmap.C
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
Configured with: ../gcc/configure --enable-shared --disable-nls --enable-threads=posix --enable-languages=c,c++,f77,objc --enable-__cxa_atexit
Thread model: posix
gcc version 3.3 20020914 (experimental)
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/cc1plus -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 -D_GNU_SOURCE thmap.C -D__GNUG__=3 -quiet -dumpbase thmap.C -auxbase thmap -pedantic -version -o /tmp/ccXsehqY.s
GNU C++ version 3.3 20020914 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 3.3 20020914 (experimental).
ignoring nonexistent directory "NONE/include"
ignoring nonexistent directory "/usr/local/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include/c++/3.3
/usr/local/include/c++/3.3/i686-pc-linux-gnu
/usr/local/include/c++/3.3/backward
/usr/local/include
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/include
/usr/include
End of search list.
/usr/local/include/c++/3.3/ext/stl_rope.h: In static member function `static
__gnu_cxx::_Rope_RopeLeaf<_CharT, _Allocator>* __gnu_cxx::rope<_CharT,
_Alloc>::_S_new_RopeLeaf(_CharT*, unsigned int, typename
__gnu_cxx::_Rope_base<_CharT, _Alloc>::allocator_type) [with _CharT = char,
_Alloc = std::allocator<char>]':
/usr/local/include/c++/3.3/ext/stl_rope.h:1417: instantiated from `static __gnu_cxx::_Rope_RopeLeaf<_CharT, _Allocator>* __gnu_cxx::rope<_CharT, _Alloc>::_S_RopeLeaf_from_unowned_char_ptr(const _CharT*, unsigned int, typename __gnu_cxx::_Rope_base<_CharT, _Alloc>::allocator_type) [with _CharT = char, _Alloc = std::allocator<char>]'
/usr/local/include/c++/3.3/ext/stl_rope.h:1525: instantiated from `__gnu_cxx::rope<_CharT, _Alloc>::rope(const _CharT*, typename __gnu_cxx::_Rope_base<_CharT, _Alloc>::allocator_type&) [with _CharT = char, _Alloc = std::allocator<char>]'
thmap.C:11: instantiated from here
/usr/local/include/c++/3.3/ext/stl_rope.h:1378: error: no match for call to `(
std::allocator<__gnu_cxx::_Rope_RopeLeaf<char, std::allocator<char> > >) (
std::allocator<char>&)'
Compiling thmap.C without -pedantic
g++ -v thmap.C
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/specs
Configured with: ../gcc/configure --enable-shared --disable-nls --enable-threads=posix --enable-languages=c,c++,f77,objc --enable-__cxa_atexit
Thread model: posix
gcc version 3.3 20020914 (experimental)
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/cc1plus -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 -D_GNU_SOURCE thmap.C -D__GNUG__=3 -quiet -dumpbase thmap.C -auxbase thmap -version -o /tmp/ccSh6gi1.s
GNU C++ version 3.3 20020914 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 3.3 20020914 (experimental).
ignoring nonexistent directory "NONE/include"
ignoring nonexistent directory "/usr/local/i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include/c++/3.3
/usr/local/include/c++/3.3/i686-pc-linux-gnu
/usr/local/include/c++/3.3/backward
/usr/local/include
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/include
/usr/include
End of search list.
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/../../../../i686-pc-linux-gnu/bin/as -V -Qy -o /tmp/ccpfgHsU.o /tmp/ccSh6gi1.s
GNU assembler version 2.13.90.0.4 (i686-pc-linux-gnu) using BFD version 2.13.90.0.4 20020814
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/collect2 --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/crtbegin.o -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3 -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/../../../../i686-pc-linux-gnu/lib -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/../../.. /tmp/ccpfgHsU.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3/crtend.o /usr/lib/crtn.o
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-09-17 3:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-16 17:06 libstdc++/7922: Problems with rope and hash_map Peter Schmid
-- strict thread matches above, loose matches on Subject: below --
2002-09-16 20:02 ljrittle
2002-09-16 16:33 ljrittle
2002-09-15 15:56 Peter Schmid
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).