From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15777 invoked by alias); 9 Jan 2002 23:15:48 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 15664 invoked from network); 9 Jan 2002 23:15:42 -0000 Received: from unknown (HELO prospero.cambridge.redhat.com) (62.30.164.150) by sources.redhat.com with SMTP; 9 Jan 2002 23:15:42 -0000 Received: (from jason@localhost) by prospero.cambridge.redhat.com (8.11.6/8.11.6) id g09NFbI25940; Wed, 9 Jan 2002 23:15:37 GMT X-Authentication-Warning: localhost.localdomain: jason set sender to jason@redhat.com using -f To: gdb-patches@sources.redhat.com Subject: PATCH to c-typeprint.c From: Jason Merrill Date: Wed, 09 Jan 2002 15:15:00 -0000 Message-ID: User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 (i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-SW-Source: 2002-01/txt/msg00205.txt.bz2 --=-=-= Content-length: 247 The test for 'ptype class Foo' in classes.exp was printing 'int operator int();', which is wrong. Fixed thusly. Is this OK to check in? 2002-01-09 Jason Merrill * c-typeprint.c (is_type_conversion_operator): Fix thinko. --=-=-= Content-Type: text/x-patch Content-Disposition: inline Content-length: 631 *** c-typeprint.c.~1~ Tue Jan 8 11:43:51 2002 --- c-typeprint.c Wed Jan 9 20:44:54 2002 *************** is_type_conversion_operator (struct type *** 407,413 **** else if (strncmp (name, "delete", 6) == 0) name += 6; else ! return 0; /* Is that really the end of the name? */ if (('a' <= *name && *name <= 'z') --- 407,415 ---- else if (strncmp (name, "delete", 6) == 0) name += 6; else ! /* If it doesn't look like new or delete, it's a type conversion ! operator. */ ! return 1; /* Is that really the end of the name? */ if (('a' <= *name && *name <= 'z') --=-=-=--