[Bug c++/16555] Diagnostic shows <unknown type> instead of <set of overloaded functions>
gdr at acm dot org
gcc-bugzilla@gcc.gnu.org
Thu Jul 15 00:50:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list