From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29946 invoked by alias); 30 Jun 2005 21:48:15 -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 29931 invoked by uid 48); 30 Jun 2005 21:48:13 -0000 Date: Thu, 30 Jun 2005 21:48:00 -0000 Message-ID: <20050630214813.29930.qmail@sourceware.org> From: "igodard at pacbell dot net" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050630163052.22256.igodard@pacbell.net> References: <20050630163052.22256.igodard@pacbell.net> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/22256] diagnostic shows wrong type for cast operator X-Bugzilla-Reason: CC X-SW-Source: 2005-06/txt/msg03634.txt.bz2 List-Id: ------- Additional Comments From igodard at pacbell dot net 2005-06-30 21:48 ------- Gabriel: no, it also happens with any pointer: struct node { float* operator float*(); }; gets you: foo.cc:1: error: operator `float*' declared to return `float' And similarly for other types including classes (not shown). BTW, shouldn't the title be "diagnostic shows wrong type for conversion function" ? I've never heard these called "cast operators". -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22256