This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/16555] Diagnostic shows <unknown type> instead of <set of overloaded functions>


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]