This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Template operator compile error in 3.0.4, not in 2.95.2
- From: "Dave Williss" <dwilliss at microimages dot com>
- To: <gcc-bugs at gcc dot gnu dot org>
- Date: Thu, 16 May 2002 11:45:21 -0500
- Subject: Template operator compile error in 3.0.4, not in 2.95.2
edittabg.c:7796: choosing `bool FIXEDSTRING<_T>::operator==(const UNICODE*)
const [with long unsigned int _T = 16]' over `operator=='
edittabg.c:7796: because worst conversion for the former is better than
worst
conversion for the latter
Why is this an error? I _want_ it to choose the template's == operator.
This is with g++ 3.0.4. It worked fine in 2.95.2
-- Dave Williss
------
Meddle not in the affairs of dragons,
for you are crunchy and taste good with catsup