public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/7373: g++ 3.0 and 3.1 miscompile certain uses of the ternary operator
@ 2002-07-22 14:12 nathan
0 siblings, 0 replies; 3+ messages in thread
From: nathan @ 2002-07-22 14:12 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, ruschein
Synopsis: g++ 3.0 and 3.1 miscompile certain uses of the ternary operator
State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Mon Jul 22 14:12:46 2002
State-Changed-Why:
not a bug. You need an out of class definition of those
static members. (It is an opportunity for optimization,
though)
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7373
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/7373: g++ 3.0 and 3.1 miscompile certain uses of the ternary operator
@ 2002-07-22 14:36 Johannes Ruscheinski
0 siblings, 0 replies; 3+ messages in thread
From: Johannes Ruscheinski @ 2002-07-22 14:36 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/7373; it has been noted by GNATS.
From: ruschein@mail-infomine.ucr.edu (Johannes Ruscheinski)
To: nathan@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
nobody@gcc.gnu.org, ruschein@infomine.ucr.edu, gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: c++/7373: g++ 3.0 and 3.1 miscompile certain uses of the ternary operator
Date: Mon, 22 Jul 2002 14:34:53 -0700
Also sprach nathan@gcc.gnu.org:
> Synopsis: g++ 3.0 and 3.1 miscompile certain uses of the ternary operator
>
> State-Changed-From-To: open->closed
> State-Changed-By: nathan
> State-Changed-When: Mon Jul 22 14:12:46 2002
> State-Changed-Why:
> not a bug. You need an out of class definition of those
> static members. (It is an opportunity for optimization,
> though)
>
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7373
Thanks for your prompt reply. The reason that I believed it to be a bug is that if
you subtly change the code the linker error disappears. Sorry to have wasted your
time!
--
Johannes
--
Dr. Johannes Ruscheinski
EMail: ruschein_AT_infomine.ucr.edu *** Linux ***
Location: science library, room G40 *** The Choice Of A GNU Generation! ***
Phone: (909) 787-2279
"To understand recursion, one must first understand recursion."
-- Unknown
^ permalink raw reply [flat|nested] 3+ messages in thread
* c++/7373: g++ 3.0 and 3.1 miscompile certain uses of the ternary operator
@ 2002-07-22 9:06 ruschein
0 siblings, 0 replies; 3+ messages in thread
From: ruschein @ 2002-07-22 9:06 UTC (permalink / raw)
To: gcc-gnats
>Number: 7373
>Category: c++
>Synopsis: g++ 3.0 and 3.1 miscompile certain uses of the ternary operator
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jul 22 09:06:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Dr. Johannes Ruscheinski
>Release: gcc versions 3.0.4 and 3.1.1-0pre3
>Organization:
>Environment:
Debian sid on 80x86, Linux 2.4.19-pre8
>Description:
Comiling the supplied tiny test program (g++-3.0 test.cc) results in the following linker errors (binutils version 2.12.90.0.14-1):
/tmp/ccKTBRxn.o: In function `main':
/tmp/ccKTBRxn.o(.text+0x17): undefined reference to `Fred::BIT1'
/tmp/ccKTBRxn.o(.text+0x21): undefined reference to `Fred::BIT2'
collect2: ld returned 1 exit status
>How-To-Repeat:
Compile the test program with *no* command line flags and version 3.0.4 (Debian 3.0.4-12 or 3.1.1-0pre3) and observe the linker error messages.
>Fix:
Unknown. Sorry I'm an application programmer and don't know anything about the compiler internals. I'd love to learn about it though :-)
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++src; name="test.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.cc"
c3RydWN0IEZyZWQgewoJc3RhdGljIGNvbnN0IHVuc2lnbmVkIEJJVDEgPSAxOwoJc3RhdGljIGNv
bnN0IHVuc2lnbmVkIEJJVDIgPSAyOwp9OwoKCmludCBtYWluKGludCBhcmdjLCBjaGFyICphcmd2
W10pCnsKCXVuc2lnbmVkIG1hc2soYXJnYyA/IEZyZWQ6OkJJVDEgOiBGcmVkOjpCSVQyKTsKfQo=
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-07-22 21:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-22 14:12 c++/7373: g++ 3.0 and 3.1 miscompile certain uses of the ternary operator nathan
-- strict thread matches above, loose matches on Subject: below --
2002-07-22 14:36 Johannes Ruscheinski
2002-07-22 9:06 ruschein
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).