public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/2995: __complex__ int typecasts maybe broken
@ 2003-05-08 8:56 Joseph S. Myers
0 siblings, 0 replies; 3+ messages in thread
From: Joseph S. Myers @ 2003-05-08 8:56 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c/2995; it has been noted by GNATS.
From: "Joseph S. Myers" <jsm28@cam.ac.uk>
To: Dara Hazeghi <dhazeghi@yahoo.com>
Cc: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org
Subject: Re: c/2995: __complex__ int typecasts maybe broken
Date: Thu, 8 May 2003 09:54:14 +0100 (BST)
On Thu, 8 May 2003, Dara Hazeghi wrote:
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-
> trail&database=gcc&pr=2995
>
> Confirmed with mainline 20030507
We know what the underlying problem is here (thread starting at
<http://gcc.gnu.org/ml/gcc/2001-11/msg00790.html>) - the question is
whether we can deprecate complex integers altogether, or just complex
integer division.
--
Joseph S. Myers
jsm28@cam.ac.uk
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c/2995: __complex__ int typecasts maybe broken
@ 2003-05-08 8:46 Dara Hazeghi
0 siblings, 0 replies; 3+ messages in thread
From: Dara Hazeghi @ 2003-05-08 8:46 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c/2995; it has been noted by GNATS.
From: Dara Hazeghi <dhazeghi@yahoo.com>
To: gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: c/2995: __complex__ int typecasts maybe broken
Date: Thu, 8 May 2003 01:37:15 -0700
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-
trail&database=gcc&pr=2995
Confirmed with mainline 20030507
Dara
^ permalink raw reply [flat|nested] 3+ messages in thread
* c/2995: __complex__ int typecasts maybe broken
@ 2001-05-29 11:06 ee96090
0 siblings, 0 replies; 3+ messages in thread
From: ee96090 @ 2001-05-29 11:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 2995
>Category: c
>Synopsis: __complex__ int typecasts maybe broken
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue May 29 11:06:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: egcs
>Release: egcs-2.91.66
>Organization:
>Environment:
Slackware 7.1
>Description:
The attached program has the following output:
real = 1; imag = -1; y = 5
Which means the typecasts from (__complex__ short int) to
(__complex__ int) are not working. There is a computation
with complex int (x) and another with normal int (y). y is
computed correctly (as expected) whilst x isn't.
>How-To-Repeat:
Just compile and run the program.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.c"
I2luY2x1ZGUgPGNvbXBsZXguaD4KI2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxsaW1pdHMu
aD4KCgp2b2lkIG1haW4odm9pZCkKewogICAgLyoqLyAgICAgICAgc2hvcnQgaW50IHk7CiAgICBf
X2NvbXBsZXhfXyBzaG9ydCBpbnQgeDsKICAgIAogICAgeCA9IDEwICsgN2o7CiAgICB5ID0gNTsK
ICAgIHggPSAoKChfX2NvbXBsZXhfXyBpbnQpeCkgKiBTSFJUX01BWCkgLyBTSFJUX01BWDsKICAg
IHkgPSAoKCggICAgICAgICAgICBpbnQpeSkgKiBTSFJUX01BWCkgLyBTSFJUX01BWDsKICAgIHBy
aW50ZigicmVhbCA9ICVoaTsgaW1hZyA9ICVoaTsgeSA9ICVoaVxuIiwgX19yZWFsX18geCwgX19p
bWFnX18geCwgeSk7Cn0K
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-05-08 8:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-08 8:56 c/2995: __complex__ int typecasts maybe broken Joseph S. Myers
-- strict thread matches above, loose matches on Subject: below --
2003-05-08 8:46 Dara Hazeghi
2001-05-29 11:06 ee96090
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).