This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Promotion through assignment?
- To: briareos at lokigames dot com
- Subject: Re: Promotion through assignment?
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Thu, 6 Jul 2000 09:31:08 +0200
- CC: gcc-bugs at gcc dot gnu dot org
- References: <20000615093334.A18070@namaste.lokigames-lan.com>
> Is this non-promotion an issue with gcc (2000612) or an aggressive
> promotion by MSVC (which compiles it fine)? A private Cc: is
> appreciated.
Thanks for your bug report. This is not a bug in the compiler, but in
your code. Copy-construction requires a temporary I object.
Constructing that requires two user-defined conversion operators. That
is not a valid conversion sequence.
If you question this analysis, please discuss it in one of the public
C++ fora first, eg. comp.lang.c++.moderated, or comp.std.c++.
Regards,
Martin