[Bug libstdc++/92224] Set: Can't be created a set with const template parameter

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Oct 25 10:18:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92224

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The standard says that the template argument for an allocator must be a
non-const, non-volatile object type, so trying to instantiate
std::allocator<const int> is undefined, and libstdc++ is allowed to reject it.


More information about the Gcc-bugs mailing list