c++/4337: [2003-01-01]c++ ignores cast operator
Bogdanov, Serge
serge.bogdanov@intel.com
Wed May 14 00:04:00 GMT 2003
Hi,
The latest analysis by Giovanni solves one mystery, but there is
another one in the same bug report: if the cast operator is removed,
compiler produces warnings.
>>> g++ -o a a.cpp
a.cpp: In function `int main()':
a.cpp:27: warning: choosing `A2::operator A1()' over `A1::A1(const A&)'
a.cpp:27: warning: for conversion from `A2' to `A1'
a.cpp:27: warning: because conversion sequence for the argument is =
better
btw, the attempt to use a cast operator was caused by these messages.
Therefore I think that the issue is not closed yet. Please re-open =
it.to use
a cast operator was caused by these messages
I tried it with gcc 3.2.2.
>> Sergey Bogdanov
intel corporation
SHR1-1/S30
334 South Street, Shrewsbury, MA 01745
Tel: (508) 841-1618
More information about the Gcc-bugs
mailing list