public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "eda-qa at disemia dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/19741] New: less than optimal error message (actually, just appears wrong, use of <unknown_type>?) Date: Tue, 01 Feb 2005 14:06:00 -0000 [thread overview] Message-ID: <20050201140539.19741.eda-qa@disemia.com> (raw) (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<int>::Exec(int, <unknown type>)' tpladdr.cc:14: error: candidates are: static bool Op<T>::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 <unknown_type> 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 <unknown_type>?) 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
next reply other threads:[~2005-02-01 14:06 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-02-01 14:06 eda-qa at disemia dot com [this message] 2005-02-01 14:06 ` [Bug c++/19741] " eda-qa at disemia dot com 2005-02-01 14:27 ` [Bug c++/19741] suboptimal error message for template functions (as opposed to non-templates) bangerth at dealii dot org 2005-02-01 16:05 ` gdr at integrable-solutions dot net 2005-02-01 17:30 ` bangerth at dealii dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20050201140539.19741.eda-qa@disemia.com \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).