This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/40299] New: Rope + C++0x mode = build error
- From: "mlcreech at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 May 2009 21:37:05 -0000
- Subject: [Bug libstdc++/40299] New: Rope + C++0x mode = build error
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
When compiling a simple program in C++0x mode, attempting to instantiate a rope
yields this error:
$ g++ -o test test.cpp -std=gnu++0x
In file included from
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.0/include/g++-v4/ext/rope:63,
from test.cpp:1:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.0/include/g++-v4/ext/memory: In function
'std::pair<_InputIter, _ForwardIter>
__gnu_cxx::uninitialized_copy_n(_InputIter, _Size, _ForwardIter) [with
_InputIter = char*, _Size = long unsigned int, _ForwardIter = char*]':
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.0/include/g++-v4/ext/rope:865:
instantiated from 'void __gnu_cxx::_Rope_RopeSubstring<_CharT,
_Alloc>::operator()(size_t, size_t, _CharT*) [with _CharT = char, _Alloc =
std::allocator<char>]'
test.cpp:7: instantiated from here
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.0/include/g++-v4/ext/memory:124: error:
call of overloaded '__uninitialized_copy_n(char*&, long unsigned int&, char*&,
std::random_access_iterator_tag)' is ambiguous
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.0/include/g++-v4/ext/memory:74: note:
candidates are: std::pair<_InputIter, _ForwardIter>
__gnu_cxx::__uninitialized_copy_n(_InputIter, _Size, _ForwardIter,
std::input_iterator_tag) [with _InputIter = char*, _Size = long unsigned int,
_ForwardIter = char*]
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.0/include/g++-v4/ext/memory:93: note:
std::pair<_InputIter, _ForwardIter>
__gnu_cxx::__uninitialized_copy_n(_RandomAccessIter, _Size, _ForwardIter,
std::random_access_iterator_tag) [with _RandomAccessIter = char*, _Size = long
unsigned int, _ForwardIter = char*]
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.0/include/g++-v4/bits/stl_uninitialized.h:454:
note: _ForwardIterator
std::__uninitialized_copy_n(_RandomAccessIterator, _Size, _ForwardIterator,
std::random_access_iterator_tag) [with _RandomAccessIterator = char*, _Size =
long unsigned int, _ForwardIterator = char*]
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.0/include/g++-v4/bits/stl_uninitialized.h:433:
note: _ForwardIterator
std::__uninitialized_copy_n(_InputIterator, _Size, _ForwardIterator,
std::input_iterator_tag) [with _InputIterator = char*, _Size = long unsigned
int, _ForwardIterator = char*]
--
Summary: Rope + C++0x mode = build error
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mlcreech at gmail dot com
GCC build triplet: x86_64-pc-linux-gnu
GCC host triplet: powerpc-linux-gnu
GCC target triplet: powerpc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40299