c++/7368: std::vector<void const* const>

vincent.lascaux@ifrance.com vincent.lascaux@ifrance.com
Sun Jul 21 12:06:00 GMT 2002


>Number:         7368
>Category:       c++
>Synopsis:       std::vector<void const* const>
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 21 10:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Vincent Lascaux
>Release:        gcc version 3.1
>Organization:
>Environment:
winXP
>Description:
The following code wont compile

#include <vector>
int main { std::vector<void const* const> Foo;}

The error is rather large, begins with :
bits/stl_alloc.h: In instantiation of `std::allocator<const void* const>':

main.cpp:5:   instantiated from here
/bits/stl_alloc.h:636: `const _Tp* 
   std::allocator<_Alloc>::address(const _Tp&) const [with _Tp = const void* 
   const]' has already been declared in `std::allocator<const void* const>'
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list