public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/22256] New: diagnostic shows wrong type
@ 2005-06-30 16:30 igodard at pacbell dot net
  2005-06-30 17:14 ` [Bug c++/22256] " bangerth at dealii dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: igodard at pacbell dot net @ 2005-06-30 16:30 UTC (permalink / raw)
  To: gcc-bugs

struct node { int*      operator int*(); };

gets you:

foo.cc:1: error: operator `int*' declared to return `int'

BTW, a better diagnostic would be something like:
error: operator `int*' should not declare a return type

-- 
           Summary: diagnostic shows wrong type
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: igodard at pacbell dot net
                CC: gcc-bugs at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <bug-22256-6594@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2007-08-06 11:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-30 16:30 [Bug c++/22256] New: diagnostic shows wrong type igodard at pacbell dot net
2005-06-30 17:14 ` [Bug c++/22256] " bangerth at dealii dot org
2005-06-30 17:15 ` bangerth at dealii dot org
2005-06-30 17:45 ` [Bug c++/22256] diagnostic shows wrong type for cast operator pinskia at gcc dot gnu dot org
2005-06-30 20:56 ` gdr at integrable-solutions dot net
2005-06-30 21:48 ` igodard at pacbell dot net
2005-06-30 22:11   ` Gabriel Dos Reis
2005-06-30 22:11 ` gdr at integrable-solutions dot net
     [not found] <bug-22256-6594@http.gcc.gnu.org/bugzilla/>
2007-08-06 11:52 ` pcarlini at suse dot de

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