This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/69293] scoped_allocator_adaptor::construct calls wrong function
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 15 Jan 2016 23:17:06 +0000
- Subject: [Bug libstdc++/69293] scoped_allocator_adaptor::construct calls wrong function
- Auto-submitted: auto-generated
- References: <bug-69293-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69293
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |6.0
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I've added a static assertion on trunk so the example now fails with:
/home/jwakely/gcc/6/include/c++/6.0.0/bits/uses_allocator.h:89:7: error: static
assertion failed: construction with an allocator must be possible if
uses_allocator is true
I'm not going to add it to the branches, because this is a real corner case
that is only likely to affect invalid programs, not cause problems for any
correct code.
I've reported a defect against the standard which should fix the definition of
scoped_allocator_adaptor::construct() and when that is resolved I'll fix our
implementation.