From: "Pierre Muller" <muller@ics.u-strasbg.fr>
To: <gdb@sourceware.org>
Subject: [BUG] BINOP_DIV and ptyp command
Date: Mon, 21 Jan 2008 09:47:00 -0000 [thread overview]
Message-ID: <002301c85c12$a73a4640$f5aed2c0$@u-strasbg.fr> (raw)
The ptyp command returns inconsistent types for the c '/'(BINOP_DIV)
operator:
(gdb) ptyp 3 / 2
type = int
(gdb) p 3 / 2
$4 = 1
(gdb) ptyp 3.0 / 2
type = double
(gdb) p 3.0 / 2
$5 = 1.5
(gdb) ptyp 3 / 2.0
type = int
(gdb) p 3 / 2.0
$6 = 1.5
I suspect that this bug is due to the fact that
the type of this binary operator is inferred from the
left node type, but this is wrong in the case '3 / 2.0'
Pierre Muller
next reply other threads:[~2008-01-21 9:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-21 9:47 Pierre Muller [this message]
2008-01-29 4:56 ` Doug Evans
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='002301c85c12$a73a4640$f5aed2c0$@u-strasbg.fr' \
--to=muller@ics.u-strasbg.fr \
--cc=gdb@sourceware.org \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).