This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/36832] New: error compiling with crope


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]