public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/65279] New: [4.8/4.9/5 Regression] std::scoped_allocator_adaptor is not assignable
@ 2015-03-02 15:52 redi at gcc dot gnu.org
2015-03-02 17:51 ` [Bug libstdc++/65279] " redi at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2015-03-02 15:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65279
Bug ID: 65279
Summary: [4.8/4.9/5 Regression] std::scoped_allocator_adaptor
is not assignable
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: redi at gcc dot gnu.org
#include <memory>
#include <scoped_allocator>
#include <vector>
int main()
{
std::vector<int, std::scoped_allocator_adaptor<std::allocator<int>>> v, w;
w = std::move(v);
}
This compiles OK (using -std=c++11) with 4.7 but not 4.8 or later:
In file included from
/home/jwakely/gcc/4.8.0/include/c++/4.8.0/ext/alloc_traits.h:36:0,
from
/home/jwakely/gcc/4.8.0/include/c++/4.8.0/bits/stl_construct.h:61,
from /home/jwakely/gcc/4.8.0/include/c++/4.8.0/memory:64,
from saa.cc:1:
/home/jwakely/gcc/4.8.0/include/c++/4.8.0/bits/alloc_traits.h: In instantiation
of ‘void std::__do_alloc_on_move(_Alloc&, _Alloc&, std::true_type) [with _Alloc
= std::scoped_allocator_adaptor<std::allocator<int> >; std::true_type =
std::integral_constant<bool, true>]’:
/home/jwakely/gcc/4.8.0/include/c++/4.8.0/bits/alloc_traits.h:490:49:
required from ‘void std::__alloc_on_move(_Alloc&, _Alloc&) [with _Alloc =
std::scoped_allocator_adaptor<std::allocator<int> >]’
/home/jwakely/gcc/4.8.0/include/c++/4.8.0/bits/stl_vector.h:1364:36: required
from ‘void std::vector<_Tp, _Alloc>::_M_move_assign(std::vector<_Tp, _Alloc>&&,
std::true_type) [with _Tp = int; _Alloc =
std::scoped_allocator_adaptor<std::allocator<int> >; std::true_type =
std::integral_constant<bool, true>]’
/home/jwakely/gcc/4.8.0/include/c++/4.8.0/bits/stl_vector.h:445:65: required
from ‘std::vector<_Tp, _Alloc>& std::vector<_Tp,
_Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc =
std::scoped_allocator_adaptor<std::allocator<int> >]’
saa.cc:8:5: required from here
/home/jwakely/gcc/4.8.0/include/c++/4.8.0/bits/alloc_traits.h:479:13: error:
use of deleted function ‘std::scoped_allocator_adaptor<std::allocator<int> >&
std::scoped_allocator_adaptor<std::allocator<int> >::operator=(const
std::scoped_allocator_adaptor<std::allocator<int> >&)’
{ __one = std::move(__two); }
^
In file included from saa.cc:2:0:
/home/jwakely/gcc/4.8.0/include/c++/4.8.0/scoped_allocator:176:11: note:
‘std::scoped_allocator_adaptor<std::allocator<int> >&
std::scoped_allocator_adaptor<std::allocator<int> >::operator=(const
std::scoped_allocator_adaptor<std::allocator<int> >&)’ is implicitly declared
as deleted because ‘std::scoped_allocator_adaptor<std::allocator<int> >’
declares a move constructor or move assignment operator
class scoped_allocator_adaptor
^
>From gcc-bugs-return-479005-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 02 15:53:52 2015
Return-Path: <gcc-bugs-return-479005-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 10443 invoked by alias); 2 Mar 2015 15:53:52 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 10421 invoked by uid 48); 2 Mar 2015 15:53:48 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/65279] [4.8/4.9/5 Regression] std::scoped_allocator_adaptor is not assignable
Date: Mon, 02 Mar 2015 15:53:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords: rejects-valid
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: redi at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.8.5
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cf_known_to_work assigned_to target_milestone everconfirmed cf_known_to_fail
Message-ID: <bug-65279-4-iWC8yJJ60r@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65279-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65279-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-03/txt/msg00149.txt.bz2
Content-length: 663
https://gcc.gnu.org/bugzilla/show_bug.cgi?ide279
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2015-03-02
Known to work| |4.7.4
Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org
Target Milestone|--- |4.8.5
Ever confirmed|0 |1
Known to fail| |4.8.3, 4.9.1, 5.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/65279] [4.8/4.9/5 Regression] std::scoped_allocator_adaptor is not assignable
2015-03-02 15:52 [Bug libstdc++/65279] New: [4.8/4.9/5 Regression] std::scoped_allocator_adaptor is not assignable redi at gcc dot gnu.org
@ 2015-03-02 17:51 ` redi at gcc dot gnu.org
2015-03-02 17:59 ` [Bug libstdc++/65279] [4.8/4.9 " redi at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2015-03-02 17:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65279
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Mon Mar 2 17:50:55 2015
New Revision: 221119
URL: https://gcc.gnu.org/viewcvs?rev=221119&root=gcc&view=rev
Log:
PR libstdc++/65279
* include/std/scoped_allocator (__inner_type_impl,
scoped_allocator_adaptor): Add defaulted copy assignment and move
assignment operators.
* testsuite/20_util/scoped_allocator/65279.cc: New.
Added:
trunk/libstdc++-v3/testsuite/20_util/scoped_allocator/65279.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/std/scoped_allocator
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/65279] [4.8/4.9 Regression] std::scoped_allocator_adaptor is not assignable
2015-03-02 15:52 [Bug libstdc++/65279] New: [4.8/4.9/5 Regression] std::scoped_allocator_adaptor is not assignable redi at gcc dot gnu.org
2015-03-02 17:51 ` [Bug libstdc++/65279] " redi at gcc dot gnu.org
@ 2015-03-02 17:59 ` redi at gcc dot gnu.org
2015-03-25 20:08 ` redi at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2015-03-02 17:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65279
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |5.0
Summary|[4.8/4.9/5 Regression] |[4.8/4.9 Regression]
|std::scoped_allocator_adapt |std::scoped_allocator_adapt
|or is not assignable |or is not assignable
Known to fail|5.0 |
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed on trunk so far.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/65279] [4.8/4.9 Regression] std::scoped_allocator_adaptor is not assignable
2015-03-02 15:52 [Bug libstdc++/65279] New: [4.8/4.9/5 Regression] std::scoped_allocator_adaptor is not assignable redi at gcc dot gnu.org
2015-03-02 17:51 ` [Bug libstdc++/65279] " redi at gcc dot gnu.org
2015-03-02 17:59 ` [Bug libstdc++/65279] [4.8/4.9 " redi at gcc dot gnu.org
@ 2015-03-25 20:08 ` redi at gcc dot gnu.org
2015-03-25 23:37 ` redi at gcc dot gnu.org
2015-03-25 23:38 ` redi at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2015-03-25 20:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65279
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Mar 25 19:35:45 2015
New Revision: 221670
URL: https://gcc.gnu.org/viewcvs?rev=221670&root=gcc&view=rev
Log:
PR libstdc++/65279
* include/std/scoped_allocator (__inner_type_impl,
scoped_allocator_adaptor): Add defaulted copy assignment and move
assignment operators.
* testsuite/20_util/scoped_allocator/65279.cc: New.
Added:
branches/gcc-4_8-branch/libstdc++-v3/testsuite/20_util/scoped_allocator/65279.cc
Modified:
branches/gcc-4_8-branch/libstdc++-v3/ChangeLog
branches/gcc-4_8-branch/libstdc++-v3/include/std/scoped_allocator
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/65279] [4.8/4.9 Regression] std::scoped_allocator_adaptor is not assignable
2015-03-02 15:52 [Bug libstdc++/65279] New: [4.8/4.9/5 Regression] std::scoped_allocator_adaptor is not assignable redi at gcc dot gnu.org
` (2 preceding siblings ...)
2015-03-25 20:08 ` redi at gcc dot gnu.org
@ 2015-03-25 23:37 ` redi at gcc dot gnu.org
2015-03-25 23:38 ` redi at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2015-03-25 23:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65279
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Mar 25 22:58:55 2015
New Revision: 221676
URL: https://gcc.gnu.org/viewcvs?rev=221676&root=gcc&view=rev
Log:
PR libstdc++/65279
* include/std/scoped_allocator (__inner_type_impl,
scoped_allocator_adaptor): Add defaulted copy assignment and move
assignment operators.
* testsuite/20_util/scoped_allocator/65279.cc: New.
Added:
branches/gcc-4_9-branch/libstdc++-v3/testsuite/20_util/scoped_allocator/65279.cc
Modified:
branches/gcc-4_9-branch/libstdc++-v3/ChangeLog
branches/gcc-4_9-branch/libstdc++-v3/include/std/scoped_allocator
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/65279] [4.8/4.9 Regression] std::scoped_allocator_adaptor is not assignable
2015-03-02 15:52 [Bug libstdc++/65279] New: [4.8/4.9/5 Regression] std::scoped_allocator_adaptor is not assignable redi at gcc dot gnu.org
` (3 preceding siblings ...)
2015-03-25 23:37 ` redi at gcc dot gnu.org
@ 2015-03-25 23:38 ` redi at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2015-03-25 23:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65279
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed for 4.8.5, 4.9.3 and 5.1
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-03-25 23:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-02 15:52 [Bug libstdc++/65279] New: [4.8/4.9/5 Regression] std::scoped_allocator_adaptor is not assignable redi at gcc dot gnu.org
2015-03-02 17:51 ` [Bug libstdc++/65279] " redi at gcc dot gnu.org
2015-03-02 17:59 ` [Bug libstdc++/65279] [4.8/4.9 " redi at gcc dot gnu.org
2015-03-25 20:08 ` redi at gcc dot gnu.org
2015-03-25 23:37 ` redi at gcc dot gnu.org
2015-03-25 23:38 ` redi at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).