public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/40299] New: Rope + C++0x mode = build error
@ 2009-05-29 21:37 mlcreech at gmail dot com
2009-05-29 21:38 ` [Bug libstdc++/40299] " mlcreech at gmail dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: mlcreech at gmail dot com @ 2009-05-29 21:37 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/40299] Rope + C++0x mode = build error
2009-05-29 21:37 [Bug libstdc++/40299] New: Rope + C++0x mode = build error mlcreech at gmail dot com
@ 2009-05-29 21:38 ` mlcreech at gmail dot com
2009-06-01 19:10 ` paolo dot carlini at oracle dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: mlcreech at gmail dot com @ 2009-05-29 21:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from mlcreech at gmail dot com 2009-05-29 21:38 -------
Created an attachment (id=17933)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17933&action=view)
Trivial test program
Compile with:
g++ -o test test.cpp -std=c++0x
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40299
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/40299] Rope + C++0x mode = build error
2009-05-29 21:37 [Bug libstdc++/40299] New: Rope + C++0x mode = build error mlcreech at gmail dot com
2009-05-29 21:38 ` [Bug libstdc++/40299] " mlcreech at gmail dot com
@ 2009-06-01 19:10 ` paolo dot carlini at oracle dot com
2009-06-02 9:07 ` paolo at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-06-01 19:10 UTC (permalink / raw)
To: gcc-bugs
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |paolo dot carlini at oracle
|dot org |dot com
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-06-01 19:09:59
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40299
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/40299] Rope + C++0x mode = build error
2009-05-29 21:37 [Bug libstdc++/40299] New: Rope + C++0x mode = build error mlcreech at gmail dot com
2009-05-29 21:38 ` [Bug libstdc++/40299] " mlcreech at gmail dot com
2009-06-01 19:10 ` paolo dot carlini at oracle dot com
@ 2009-06-02 9:07 ` paolo at gcc dot gnu dot org
2009-06-02 9:07 ` paolo at gcc dot gnu dot org
2009-06-02 9:14 ` paolo dot carlini at oracle dot com
4 siblings, 0 replies; 6+ messages in thread
From: paolo at gcc dot gnu dot org @ 2009-06-02 9:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from paolo at gcc dot gnu dot org 2009-06-02 09:06 -------
Subject: Bug 40299
Author: paolo
Date: Tue Jun 2 09:06:31 2009
New Revision: 148081
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148081
Log:
2009-06-03 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/40299
* include/ext/memory: Fully qualify calls with __gnu_cxx.
* testsuite/ext/rope/40299.cc: New.
Added:
trunk/libstdc++-v3/testsuite/ext/rope/40299.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/ext/memory
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40299
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/40299] Rope + C++0x mode = build error
2009-05-29 21:37 [Bug libstdc++/40299] New: Rope + C++0x mode = build error mlcreech at gmail dot com
` (2 preceding siblings ...)
2009-06-02 9:07 ` paolo at gcc dot gnu dot org
@ 2009-06-02 9:07 ` paolo at gcc dot gnu dot org
2009-06-02 9:14 ` paolo dot carlini at oracle dot com
4 siblings, 0 replies; 6+ messages in thread
From: paolo at gcc dot gnu dot org @ 2009-06-02 9:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from paolo at gcc dot gnu dot org 2009-06-02 09:07 -------
Subject: Bug 40299
Author: paolo
Date: Tue Jun 2 09:06:45 2009
New Revision: 148082
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148082
Log:
2009-06-03 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/40299
* include/ext/memory: Fully qualify calls with __gnu_cxx.
* testsuite/ext/rope/40299.cc: New.
Added:
branches/gcc-4_4-branch/libstdc++-v3/testsuite/ext/rope/40299.cc
Modified:
branches/gcc-4_4-branch/libstdc++-v3/ChangeLog
branches/gcc-4_4-branch/libstdc++-v3/include/ext/memory
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40299
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/40299] Rope + C++0x mode = build error
2009-05-29 21:37 [Bug libstdc++/40299] New: Rope + C++0x mode = build error mlcreech at gmail dot com
` (3 preceding siblings ...)
2009-06-02 9:07 ` paolo at gcc dot gnu dot org
@ 2009-06-02 9:14 ` paolo dot carlini at oracle dot com
4 siblings, 0 replies; 6+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-06-02 9:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from paolo dot carlini at oracle dot com 2009-06-02 09:14 -------
Fixed.
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40299
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-06-02 9:14 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-29 21:37 [Bug libstdc++/40299] New: Rope + C++0x mode = build error mlcreech at gmail dot com
2009-05-29 21:38 ` [Bug libstdc++/40299] " mlcreech at gmail dot com
2009-06-01 19:10 ` paolo dot carlini at oracle dot com
2009-06-02 9:07 ` paolo at gcc dot gnu dot org
2009-06-02 9:07 ` paolo at gcc dot gnu dot org
2009-06-02 9:14 ` paolo dot carlini at oracle dot com
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).