public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16555] Diagnostic shows <unknown type> instead of <set of overloaded functions>
       [not found] <bug-16555-6594@http.gcc.gnu.org/bugzilla/>
@ 2005-10-04  2:31 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-04  2:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pinskia at gcc dot gnu dot org  2005-10-04 02:31 -------
Fixed by:
Fixed by:
        * error.c (dump_type) <UNKNOWN_TYPE>: Print reworded message.
        * g++.dg/overload/unknown1.C: New.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.1.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16555


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/16555] Diagnostic shows <unknown type> instead of <set of overloaded functions>
  2004-07-14 23:51 [Bug c++/16555] New: Diagnostic shows "unknown type" for member pointer igodard at pacbell dot net
                   ` (2 preceding siblings ...)
  2004-07-15  1:00 ` pinskia at gcc dot gnu dot org
@ 2004-07-15  3:30 ` igodard at pacbell dot net
  3 siblings, 0 replies; 6+ messages in thread
From: igodard at pacbell dot net @ 2004-07-15  3:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From igodard at pacbell dot net  2004-07-15 03:30 -------
Any reason not to show the list of candidates, as you do when it is the function rather than the argument that is overloaded? That would help the user IMO. Often it's quite hard to find all the overloads on e.g. library functions. I have frequently resorted to making a bogus call on a function just to get a list.

Ivan

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16555


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/16555] Diagnostic shows <unknown type> instead of <set of overloaded functions>
  2004-07-14 23:51 [Bug c++/16555] New: Diagnostic shows "unknown type" for member pointer igodard at pacbell dot net
  2004-07-15  0:46 ` [Bug c++/16555] Diagnostic shows <unknown type> instead of <set of overloaded functions> bangerth at dealii dot org
  2004-07-15  0:50 ` gdr at acm dot org
@ 2004-07-15  1:00 ` pinskia at gcc dot gnu dot org
  2004-07-15  3:30 ` igodard at pacbell dot net
  3 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-15  1:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-15 01:00 -------
Actually that is true, the error message has not changed since at least 3.0, before in 2.95.3 we used 
{unknown type} instead of <unknown type> but really the error message has not changed at all.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16555


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Bug c++/16555] Diagnostic shows <unknown type> instead of  <set of overloaded functions>
  2004-07-15  0:46 ` [Bug c++/16555] Diagnostic shows <unknown type> instead of <set of overloaded functions> bangerth at dealii dot org
@ 2004-07-15  0:50   ` Gabriel Dos Reis
  0 siblings, 0 replies; 6+ messages in thread
From: Gabriel Dos Reis @ 2004-07-15  0:50 UTC (permalink / raw)
  To: gcc-bugzilla; +Cc: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/16555] Diagnostic shows <unknown type> instead of <set of overloaded functions>
  2004-07-14 23:51 [Bug c++/16555] New: Diagnostic shows "unknown type" for member pointer igodard at pacbell dot net
  2004-07-15  0:46 ` [Bug c++/16555] Diagnostic shows <unknown type> instead of <set of overloaded functions> bangerth at dealii dot org
@ 2004-07-15  0:50 ` gdr at acm dot org
  2004-07-15  1:00 ` pinskia at gcc dot gnu dot org
  2004-07-15  3:30 ` igodard at pacbell dot net
  3 siblings, 0 replies; 6+ messages in thread
From: gdr at acm dot org @ 2004-07-15  0:50 UTC (permalink / raw)
  To: gcc-bugs


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/16555] Diagnostic shows <unknown type> instead of <set of overloaded functions>
  2004-07-14 23:51 [Bug c++/16555] New: Diagnostic shows "unknown type" for member pointer igodard at pacbell dot net
@ 2004-07-15  0:46 ` bangerth at dealii dot org
  2004-07-15  0:50   ` Gabriel Dos Reis
  2004-07-15  0:50 ` gdr at acm dot org
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 6+ messages in thread
From: bangerth at dealii dot org @ 2004-07-15  0:46 UTC (permalink / raw)
  To: gcc-bugs


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-10-04  2:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-16555-6594@http.gcc.gnu.org/bugzilla/>
2005-10-04  2:31 ` [Bug c++/16555] Diagnostic shows <unknown type> instead of <set of overloaded functions> pinskia at gcc dot gnu dot org
2004-07-14 23:51 [Bug c++/16555] New: Diagnostic shows "unknown type" for member pointer igodard at pacbell dot net
2004-07-15  0:46 ` [Bug c++/16555] Diagnostic shows <unknown type> instead of <set of overloaded functions> bangerth at dealii dot org
2004-07-15  0:50   ` Gabriel Dos Reis
2004-07-15  0:50 ` gdr at acm dot org
2004-07-15  1:00 ` pinskia at gcc dot gnu dot org
2004-07-15  3:30 ` igodard at pacbell dot net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).