This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/16875] Fails to compile: STL container of const pointer to X
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Aug 2004 08:03:31 -0000
- Subject: [Bug libstdc++/16875] Fails to compile: STL container of const pointer to X
- References: <20040804124119.16875.loose@astron.nl>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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" <gcc-bugzilla@gcc.gnu.org> 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