This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25950] [3.4/4.0/4.1 Regression] [DR 152] Reference binding and explicit copy constructors
- From: "gdr at cs dot tamu dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jan 2006 03:20:11 -0000
- Subject: [Bug c++/25950] [3.4/4.0/4.1 Regression] [DR 152] Reference binding and explicit copy constructors
- References: <bug-25950-11686@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #12 from gdr at cs dot tamu dot edu 2006-01-25 03:20 -------
Subject: Re: [3.4/4.0/4.1 Regression] [DR 152] Reference binding and explicit
copy constructors
"pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| So this really just DR 152
No!
DR 152 is about what happens when you pass an argument by value and
the copy-constructor happens to be explicit. DR 152 says that well,
you loose -- the copy-constructor is a converting constructor and if
it is explicit, then the pass-by-value fails. Read the last sentence
of bullet 1 and bullet 2 carefully.
| and has nothing to do with DR 391 except misleading us.
It is exactly the opposite. DR 152 is a distraction.
The PR is about
| DR 152 is TR1
if it were TR1, it would not have been the C++ standard. It is TC1,
but again this issue is NOT about DR 152. It is about DR 391 and
and related aspect.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25950