public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/47695] New: [C++0X] Calling a deleted function fails twice
@ 2011-02-11 8:55 gcc at magfr dot user.lysator.liu.se
2011-11-06 13:14 ` [Bug c++/47695] " paolo.carlini at oracle dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: gcc at magfr dot user.lysator.liu.se @ 2011-02-11 8:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47695
Summary: [C++0X] Calling a deleted function fails twice
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: gcc@magfr.user.lysator.liu.se
Compiling the following:
--- test.C ---
void f() = delete;
void g() { f(); }
---- ---
triggers the errors:
test.C: In function 'void g()':
test.C:2:12: error: use of deleted function 'void f()'
test.C:1:6: error: declared here
test.C:2:14: error: use of deleted function 'void f()'
test.C:1:6: error: declared here
and I understand that the first set is due to me referring to the symbol and
the second set is due to me calling it but I think one set of error messages
would be enough here.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/47695] [C++0X] Calling a deleted function fails twice
2011-02-11 8:55 [Bug c++/47695] New: [C++0X] Calling a deleted function fails twice gcc at magfr dot user.lysator.liu.se
@ 2011-11-06 13:14 ` paolo.carlini at oracle dot com
2011-11-06 21:06 ` paolo at gcc dot gnu.org
2011-11-06 21:08 ` paolo.carlini at oracle dot com
2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-11-06 13:14 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47695
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2011-11-06
AssignedTo|unassigned at gcc dot |paolo.carlini at oracle dot
|gnu.org |com
Target Milestone|--- |4.7.0
Ever Confirmed|0 |1
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-11-06 13:13:49 UTC ---
On it.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/47695] [C++0X] Calling a deleted function fails twice
2011-02-11 8:55 [Bug c++/47695] New: [C++0X] Calling a deleted function fails twice gcc at magfr dot user.lysator.liu.se
2011-11-06 13:14 ` [Bug c++/47695] " paolo.carlini at oracle dot com
@ 2011-11-06 21:06 ` paolo at gcc dot gnu.org
2011-11-06 21:08 ` paolo.carlini at oracle dot com
2 siblings, 0 replies; 4+ messages in thread
From: paolo at gcc dot gnu.org @ 2011-11-06 21:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47695
--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-11-06 21:05:47 UTC ---
Author: paolo
Date: Sun Nov 6 21:05:44 2011
New Revision: 181042
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181042
Log:
2011-11-06 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/47695
* decl2.c (mark_used): Early return false after error or sorry.
* cp-tree.h (mark_used): Adjust declaration.
* semantics.c (finish_id_expression): Check mark_used return value.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/decl2.c
trunk/gcc/cp/semantics.c
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/47695] [C++0X] Calling a deleted function fails twice
2011-02-11 8:55 [Bug c++/47695] New: [C++0X] Calling a deleted function fails twice gcc at magfr dot user.lysator.liu.se
2011-11-06 13:14 ` [Bug c++/47695] " paolo.carlini at oracle dot com
2011-11-06 21:06 ` paolo at gcc dot gnu.org
@ 2011-11-06 21:08 ` paolo.carlini at oracle dot com
2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-11-06 21:08 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47695
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-11-06 21:07:39 UTC ---
Fixed for 4.7.0.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-11-06 21:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-11 8:55 [Bug c++/47695] New: [C++0X] Calling a deleted function fails twice gcc at magfr dot user.lysator.liu.se
2011-11-06 13:14 ` [Bug c++/47695] " paolo.carlini at oracle dot com
2011-11-06 21:06 ` paolo at gcc dot gnu.org
2011-11-06 21:08 ` paolo.carlini at oracle dot com
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).