* [Bug c++/60019] [C++11] Bogus error: use of deleted function unique_ptr(const unique_ptr&)
[not found] <bug-60019-4@http.gcc.gnu.org/bugzilla/>
@ 2014-02-01 14:52 ` daniel.kruegler at googlemail dot com
2014-05-09 18:16 ` jason at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 6+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2014-02-01 14:52 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 4954 bytes --]
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60019
Daniel Krügler <daniel.kruegler at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel.kruegler@googlemail.
| |com
--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
I don't think that this is related to the implementation of unique_ptr, instead
my guess is that gcc currently does not yet implement
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#5
The code compiles well, if the destination object is not a const object or if
the initialization is direct-initialization. Before CWG 5 was reolved, it was
unclear whether the wording in 8.5 p17 (The bullet starting with: "If the
destination type is a (possibly cv-qualified) class type") was referring to a
destination type including or without it's cv qualification.
More evidence to that assumption is that the CWG 5 code example is currently
rejected by gcc as it would be expected to happen according to the "including
the cv-qualifier" interpretation.
>From gcc-bugs-return-442283-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Feb 01 15:06:33 2014
Return-Path: <gcc-bugs-return-442283-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32598 invoked by alias); 1 Feb 2014 15:06:32 -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 32571 invoked by uid 48); 1 Feb 2014 15:06:27 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/60024] global-buffer-overflow in init_regs_for_mode
Date: Sat, 01 Feb 2014 15:06:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc target_milestone everconfirmed
Message-ID: <bug-60024-4-z8Na7yNptg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60024-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60024-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: 2014-02/txt/msg00040.txt.bz2
Content-length: 1828
http://gcc.gnu.org/bugzilla/show_bug.cgi?id`024
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-02-01
CC| |abel at ispras dot ru
Target Milestone|--- |4.9.0
Ever confirmed|0 |1
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to H.J. Lu from comment #0)
> When GCC is bootstrapped with --with-build-config=bootstrap-asan
> r207375 gave
>
> spawn -ignore SIGHUP
> /export/build/gnu/gcc-asan/build-x86_64-linux/gcc/testsuite/gfortran3/../../
> gfortran
> -B/export/build/gnu/gcc-asan/build-x86_64-linux/gcc/testsuite/gfortran3/../..
> /
> -B/export/build/gnu/gcc-asan/build-x86_64-linux/x86_64-unknown-linux-gnu/32/
> libgfortran/
> /export/gnu/import/git/sources/gcc/gcc/testsuite/gfortran.dg/pr42294.f
> -fno-diagnostics-show-caret -fdiagnostics-color=never -O -O2
> -fselective-scheduling2 -fsel-sched-pipelining -funroll-all-loops -S -m32 -o
> pr42294.s^M
> =================================================================^M
> ^[[1m^[[31m=31==ERROR: AddressSanitizer: global-buffer-overflow on
> address 0x000003deb6cd at pc 0x12f89cf bp 0x7ffffba71eb0 sp 0x7ffffba71ea8^M
> ^[[1m^[[0m^[[1m^[[34mREAD of size 1 at 0x000003deb6cd thread T0^[[1m^[[0m^M
> #0 0x12f89ce in init_regs_for_mode
> /export/gnu/import/git/sources/gcc/gcc/sel-sched.c:1124^M
(gdb) call ix86_hard_regno_mode_ok (cur_reg, mode)
$6 = false
(gdb) p cur_reg
$7 = 76
(gdb) p mode
$8 = DFmode
(gdb) p nregs
$9 = 2
(gdb) call ix86_hard_regno_mode_ok (cur_reg, mode)
$10 = false
(gdb)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/60019] [C++11] Bogus error: use of deleted function unique_ptr(const unique_ptr&)
[not found] <bug-60019-4@http.gcc.gnu.org/bugzilla/>
2014-02-01 14:52 ` [Bug c++/60019] [C++11] Bogus error: use of deleted function unique_ptr(const unique_ptr&) daniel.kruegler at googlemail dot com
@ 2014-05-09 18:16 ` jason at gcc dot gnu.org
2014-05-09 18:21 ` jason at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2014-05-09 18:16 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60019
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri May 9 18:16:11 2014
New Revision: 210284
URL: http://gcc.gnu.org/viewcvs?rev=210284&root=gcc&view=rev
Log:
DR 5
PR c++/60019
* call.c (build_user_type_conversion_1): The copy-init temporary
is cv-unqualified.
Added:
trunk/gcc/testsuite/g++.dg/init/copy7.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/60019] [C++11] Bogus error: use of deleted function unique_ptr(const unique_ptr&)
[not found] <bug-60019-4@http.gcc.gnu.org/bugzilla/>
2014-02-01 14:52 ` [Bug c++/60019] [C++11] Bogus error: use of deleted function unique_ptr(const unique_ptr&) daniel.kruegler at googlemail dot com
2014-05-09 18:16 ` jason at gcc dot gnu.org
@ 2014-05-09 18:21 ` jason at gcc dot gnu.org
2014-05-13 17:40 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2014-05-09 18:21 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60019
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2014-05-09
CC| |jason at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed on trunk currently. Is this important to get into 4.9?
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/60019] [C++11] Bogus error: use of deleted function unique_ptr(const unique_ptr&)
[not found] <bug-60019-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2014-05-09 18:21 ` jason at gcc dot gnu.org
@ 2014-05-13 17:40 ` jason at gcc dot gnu.org
2014-05-13 17:53 ` jason at gcc dot gnu.org
2015-03-25 17:15 ` paolo.carlini at oracle dot com
5 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2014-05-13 17:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60019
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue May 13 17:39:56 2014
New Revision: 210391
URL: http://gcc.gnu.org/viewcvs?rev=210391&root=gcc&view=rev
Log:
DR 5
PR c++/60019
* call.c (build_user_type_conversion_1): The copy-init temporary
is cv-unqualified.
Added:
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/init/copy7.C
Modified:
branches/gcc-4_9-branch/gcc/cp/ChangeLog
branches/gcc-4_9-branch/gcc/cp/call.c
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/60019] [C++11] Bogus error: use of deleted function unique_ptr(const unique_ptr&)
[not found] <bug-60019-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2014-05-13 17:40 ` jason at gcc dot gnu.org
@ 2014-05-13 17:53 ` jason at gcc dot gnu.org
2015-03-25 17:15 ` paolo.carlini at oracle dot com
5 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2014-05-13 17:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60019
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |4.9.1
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 4.9.1.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/60019] [C++11] Bogus error: use of deleted function unique_ptr(const unique_ptr&)
[not found] <bug-60019-4@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2014-05-13 17:53 ` jason at gcc dot gnu.org
@ 2015-03-25 17:15 ` paolo.carlini at oracle dot com
5 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-03-25 17:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60019
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ai.azuma at gmail dot com
--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> ---
*** Bug 55335 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 6+ messages in thread