From: Jason Merrill <jason@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: PATCH to c-typeprint.c
Date: Wed, 09 Jan 2002 15:15:00 -0000 [thread overview]
Message-ID: <wvlitabi09z.fsf@prospero.cambridge.redhat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 247 bytes --]
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 <jason@redhat.com>
* c-typeprint.c (is_type_conversion_operator): Fix thinko.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 631 bytes --]
*** 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')
next reply other threads:[~2002-01-09 23:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-09 15:15 Jason Merrill [this message]
2002-01-09 15:27 ` Andrew Cagney
2002-01-09 15:34 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=wvlitabi09z.fsf@prospero.cambridge.redhat.com \
--to=jason@redhat.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox