[Bug c++/25950] [3.4/4.0/4.1 Regression] [DR 152] Reference binding and explicit copy constructors
gdr at cs dot tamu dot edu
gcc-bugzilla@gcc.gnu.org
Wed Jan 25 03:20:00 GMT 2006
------- 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
More information about the Gcc-bugs
mailing list