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: "gdr at acm dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jul 2004 00:50:14 -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 gdr at acm dot org 2004-07-15 00:50 -------
Subject: Re: Diagnostic shows <unknown type> instead of
<set of overloaded functions>
bangerth at dealii 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>
Indeed. The systematic use of unknown_type_node for the type
of overload-set is recent -- it has been systematic with the
new parser.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16555