From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24264 invoked by alias); 30 Jun 2005 16:30:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 24234 invoked by uid 48); 30 Jun 2005 16:30:54 -0000 Date: Thu, 30 Jun 2005 16:30:00 -0000 From: "igodard at pacbell dot net" To: gcc-bugs@gcc.gnu.org Message-ID: <20050630163052.22256.igodard@pacbell.net> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/22256] New: diagnostic shows wrong type X-Bugzilla-Reason: CC X-SW-Source: 2005-06/txt/msg03597.txt.bz2 List-Id: 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