From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3059 invoked by alias); 1 Feb 2005 14:06:05 -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 2714 invoked by uid 48); 1 Feb 2005 14:05:47 -0000 Date: Tue, 01 Feb 2005 14:06:00 -0000 From: "eda-qa at disemia dot com" To: gcc-bugs@gcc.gnu.org Message-ID: <20050201140539.19741.eda-qa@disemia.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/19741] New: less than optimal error message (actually, just appears wrong, use of ?) X-Bugzilla-Reason: CC X-SW-Source: 2005-02/txt/msg00074.txt.bz2 List-Id: (Such an error also appears to exist in 5458) In the attached example the following error appears: tpladdr.cc: In function `int main()': tpladdr.cc:21: error: no matching function for call to `Op::Exec(int, )' tpladdr.cc:14: error: candidates are: static bool Op::Exec(T, bool (*)(T)) [with T = int] In this case the error does not help (actually it misleads) as to what the problem is. The reference to seems to indicate that it doesn't know the type of that paremeter, when in indeed it actually does, but the function type has the wrong signature... Simply correcting the function signature to: bool Func( T param ) Allows the program to work as it should. Thus the error message is simply very confusing. -- Summary: less than optimal error message (actually, just appears wrong, use of ?) Product: gcc Version: 3.3.1 Status: UNCONFIRMED Severity: minor Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: eda-qa at disemia dot com CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19741