From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12066 invoked by alias); 24 Nov 2003 18:10:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 12058 invoked by uid 48); 24 Nov 2003 18:10:42 -0000 Date: Mon, 24 Nov 2003 18:10:00 -0000 From: "ian at airs dot com" To: gcc-bugs@gcc.gnu.org Message-ID: <20031124181040.13178.ian@airs.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/13178] New: Bogus C++ error message referring to operator 1 X-Bugzilla-Reason: CC X-SW-Source: 2003-11/txt/msg02151.txt.bz2 List-Id: Compiling this test case template class C { template operator t() { return (u) this->i; } int i; }; int fn (C c) { return C::operator float(c); } using the compiler in the build tree gcc/xgcc -Bgcc/ -c ~/foo3.cc yields this bogus error message: /home/ian/foo3.cc: In function `int fn(C)': /home/ian/foo3.cc:7: error: no matching function for call to `C::operator 1(C&)' There is obviously no ``operator 1''. Admittedly this program is buggy, but the error message should still be fixed. -- Summary: Bogus C++ error message referring to operator 1 Product: gcc Version: 3.4 Status: UNCONFIRMED Severity: minor Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ian at airs dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13178