From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 551 invoked by alias); 5 Aug 2004 08:03: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 538 invoked by alias); 5 Aug 2004 08:03:31 -0000 Date: Thu, 05 Aug 2004 08:03:00 -0000 Message-ID: <20040805080331.537.qmail@sourceware.org> From: "gdr at integrable-solutions dot net" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040804124119.16875.loose@astron.nl> References: <20040804124119.16875.loose@astron.nl> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug libstdc++/16875] Fails to compile: STL container of const pointer to X X-Bugzilla-Reason: CC X-SW-Source: 2004-08/txt/msg00360.txt.bz2 List-Id: ------- Additional Comments From gdr at integrable-solutions dot net 2004-08-05 08:03 ------- Subject: Re: Fails to compile: STL container of const pointer to X "pcarlini at suse dot de" writes: | ... indeed, the error: | | /usr/include/c++/3.2.2/bits/stl_alloc.h:674: `const _Tp* | std::allocator<_Alloc>::address(const _Tp&) const [with _Tp = X* const]' and | `_Tp* std::allocator<_Alloc>::address(_Tp&) const [with _Tp = X* const]' | cannot be overloaded | | definitely makes sense for _Tp == X* const! | | Gaby? The code shown in the report does not make sense: You can't put a const T in a standard sequence. People have figured out that there is another issue with allocator. So the PR is doubly invalid :-) -- Gaby -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16875