public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/17869] New: std::allocator fails for const types
@ 2004-10-06 19:40 igodard at pacbell dot net
2004-10-06 19:53 ` [Bug libstdc++/17869] " bangerth at dealii dot org
0 siblings, 1 reply; 2+ messages in thread
From: igodard at pacbell dot net @ 2004-10-06 19:40 UTC (permalink / raw)
To: gcc-bugs
#include <memory>
int main() {
std::allocator<const int> acint;
return 0;
}
gets you:
~/ootbc/members/src$ c++ foo.cc
/mnt/export/local/bin/../lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/ext/new_allocator.h:
In instantiation of `__gnu_cxx::new_allocator<const int>':
/mnt/export/local/bin/../lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/bits/allocator.h:81:
instantiated from `std::allocator<const int>'
foo.cc:3: instantiated from here
/mnt/export/local/bin/../lib/gcc/i686-pc-linux-gnu/3.4.0/../../../../include/c++/3.4.0/ext/new_allocator.h:75:
error: `const _Tp* __gnu_cxx::new_allocator<_Tp>::address(const _Tp&) const
[with _Tp = const int]' and `_Tp* __gnu_cxx::new_allocator<_Tp>::address(_Tp&)
const [with _Tp = const int]' cannot be overloaded
--
Summary: std::allocator fails for const types
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: igodard at pacbell dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17869
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-10-06 19:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-06 19:40 [Bug libstdc++/17869] New: std::allocator fails for const types igodard at pacbell dot net
2004-10-06 19:53 ` [Bug libstdc++/17869] " bangerth at dealii dot org
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).