This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/36832] New: error compiling with crope
- From: "george dot gugulea at uti dot ro" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jul 2008 08:26:19 -0000
- Subject: [Bug libstdc++/36832] New: error compiling with crope
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
regarding rope class taken from libstdc++43-devel-4.3.1_20080507-6.1 from suse
11.0 distribution:
compiling the following program result in an error:
#include <ext/rope>
int main()
{
__gnu_cxx::crope myRope;
myRope = "1234567890";
char buffer[100];
myRope.copy(1,1,buffer);
return 0;
}
the error:
/usr/include/c++/4.3/bits/stl_construct.h: In function void
std::_Destroy(_ForwardIterator, _ForwardIterator, _Allocator&) [with
_ForwardIterator = char*, _Allocator = const std::allocator<char>]:
/usr/include/c++/4.3/ext/rope:1963: instantiated from size_t
__gnu_cxx::rope<_CharT, _Alloc>::copy(size_t, size_t, _CharT*) const [with
_CharT = char, _Alloc = std::allocator<char>]
rope.cpp:9: instantiated from here
/usr/include/c++/4.3/bits/stl_construct.h:120: error: passing const
std::allocator<char> as this argument of void
__gnu_cxx::new_allocator<_Tp>::destroy(_Tp*) [with _Tp = char] discards
qualifiers
--
Summary: error compiling with crope
Product: gcc
Version: 4.3.1
Status: UNCONFIRMED
Severity: critical
Priority: P3
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: george dot gugulea at uti dot ro
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36832