This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Promotion through assignment?


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]