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


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