public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49102] New: Use of deleted copy constructor not diagnosed
@ 2011-05-21 17:25 schaub.johannes at googlemail dot com
2011-05-21 20:33 ` [Bug c++/49102] [C++0x] " schaub.johannes at googlemail dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: schaub.johannes at googlemail dot com @ 2011-05-21 17:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49102
Summary: Use of deleted copy constructor not diagnosed
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: schaub.johannes@googlemail.com
The following program should be diagnosed at the call to "f" for using a
deleted copy constructor in an lvalue to rvalue conversion
struct A {
A() = default;
private:
A(A const&) = default;
};
void f(...) { }
int main() {
A a;
f(a);
}
GCC compiles and links this code without complaining.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/49102] [C++0x] Use of deleted copy constructor not diagnosed
2011-05-21 17:25 [Bug c++/49102] New: Use of deleted copy constructor not diagnosed schaub.johannes at googlemail dot com
@ 2011-05-21 20:33 ` schaub.johannes at googlemail dot com
2011-05-23 18:14 ` jason at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: schaub.johannes at googlemail dot com @ 2011-05-21 20:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49102
--- Comment #1 from Johannes Schaub <schaub.johannes at googlemail dot com> 2011-05-21 20:04:16 UTC ---
(In reply to comment #0)
> The following program should be diagnosed at the call to "f" for using a
> deleted copy constructor in an lvalue to rvalue conversion
>
I'm sorry. I meant: "for using a inaccessible copy constructor", of course.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/49102] [C++0x] Use of deleted copy constructor not diagnosed
2011-05-21 17:25 [Bug c++/49102] New: Use of deleted copy constructor not diagnosed schaub.johannes at googlemail dot com
2011-05-21 20:33 ` [Bug c++/49102] [C++0x] " schaub.johannes at googlemail dot com
@ 2011-05-23 18:14 ` jason at gcc dot gnu.org
2011-05-24 4:52 ` jason at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-23 18:14 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49102
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2011.05.23 17:53:17
AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org
|gnu.org |
Ever Confirmed|0 |1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/49102] [C++0x] Use of deleted copy constructor not diagnosed
2011-05-21 17:25 [Bug c++/49102] New: Use of deleted copy constructor not diagnosed schaub.johannes at googlemail dot com
2011-05-21 20:33 ` [Bug c++/49102] [C++0x] " schaub.johannes at googlemail dot com
2011-05-23 18:14 ` jason at gcc dot gnu.org
@ 2011-05-24 4:52 ` jason at gcc dot gnu.org
2011-05-25 1:36 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-24 4:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49102
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-24 03:49:07 UTC ---
Author: jason
Date: Tue May 24 03:49:03 2011
New Revision: 174101
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174101
Log:
PR c++/49102
* call.c (convert_arg_to_ellipsis): Call force_rvalue.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/defaulted28.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/49102] [C++0x] Use of deleted copy constructor not diagnosed
2011-05-21 17:25 [Bug c++/49102] New: Use of deleted copy constructor not diagnosed schaub.johannes at googlemail dot com
` (2 preceding siblings ...)
2011-05-24 4:52 ` jason at gcc dot gnu.org
@ 2011-05-25 1:36 ` jason at gcc dot gnu.org
2011-05-25 2:41 ` paolo.carlini at oracle dot com
2011-05-25 12:32 ` paolo.carlini at oracle dot com
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-25 1:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49102
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.6.1
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-25 01:14:12 UTC ---
Fixed for 4.6.1.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/49102] [C++0x] Use of deleted copy constructor not diagnosed
2011-05-21 17:25 [Bug c++/49102] New: Use of deleted copy constructor not diagnosed schaub.johannes at googlemail dot com
` (3 preceding siblings ...)
2011-05-25 1:36 ` jason at gcc dot gnu.org
@ 2011-05-25 2:41 ` paolo.carlini at oracle dot com
2011-05-25 12:32 ` paolo.carlini at oracle dot com
5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-05-25 2:41 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49102
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-05-25 01:41:00 UTC ---
Are you sure it's fixed in the branch too?
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/49102] [C++0x] Use of deleted copy constructor not diagnosed
2011-05-21 17:25 [Bug c++/49102] New: Use of deleted copy constructor not diagnosed schaub.johannes at googlemail dot com
` (4 preceding siblings ...)
2011-05-25 2:41 ` paolo.carlini at oracle dot com
@ 2011-05-25 12:32 ` paolo.carlini at oracle dot com
5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-05-25 12:32 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49102
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.6.1 |4.7.0
--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-05-25 12:06:37 UTC ---
Confirmed as non-fixed in the branch.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-05-25 12:27 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-21 17:25 [Bug c++/49102] New: Use of deleted copy constructor not diagnosed schaub.johannes at googlemail dot com
2011-05-21 20:33 ` [Bug c++/49102] [C++0x] " schaub.johannes at googlemail dot com
2011-05-23 18:14 ` jason at gcc dot gnu.org
2011-05-24 4:52 ` jason at gcc dot gnu.org
2011-05-25 1:36 ` jason at gcc dot gnu.org
2011-05-25 2:41 ` paolo.carlini at oracle dot com
2011-05-25 12:32 ` 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).