From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17854 invoked by alias); 6 Oct 2004 19:40:33 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 17835 invoked by uid 48); 6 Oct 2004 19:40:33 -0000 Date: Wed, 06 Oct 2004 19:40:00 -0000 From: "igodard at pacbell dot net" To: gcc-bugs@gcc.gnu.org Message-ID: <20041006194032.17869.igodard@pacbell.net> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug libstdc++/17869] New: std::allocator fails for const types X-Bugzilla-Reason: CC X-SW-Source: 2004-10/txt/msg00761.txt.bz2 List-Id: #include int main() { std::allocator 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': /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' 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