This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16555] Diagnostic shows <unknown type> instead of <set of overloaded functions>
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jul 2004 00:46:57 -0000
- Subject: [Bug c++/16555] Diagnostic shows <unknown type> instead of <set of overloaded functions>
- References: <20040714235118.16555.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-07-15 00:46 -------
We've been there before. You get these error messages for cases like
this:
--------------
int f();
int f(int);
int g(int);
int g(double);
int i = g (&f);
---------------
g/x> /home/bangerth/bin/gcc-3.5-pre/bin/c++ -c x.cc
x.cc:7: error: no matching function for call to `g(<unknown type>)'
x.cc:4: note: candidates are: int g(int)
x.cc:5: note: int g(double)
I concede that the error message could be improved by using something
like
<set of overloaded functions>
instead of
<unknown type>
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |diagnostic
Last reconfirmed|0000-00-00 00:00:00 |2004-07-15 00:46:57
date| |
Summary|Diagnostic shows "unknown |Diagnostic shows <unknown
|type" for member pointer |type> instead of <set of
| |overloaded functions>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16555