public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16102] New: Using references in trinary operator as un lvalue doesn't change the reference in some case
@ 2004-06-20 11:48 ofiravni99 at walla dot co dot il
2004-06-20 11:50 ` [Bug c++/16102] " ofiravni99 at walla dot co dot il
2004-06-20 15:17 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: ofiravni99 at walla dot co dot il @ 2004-06-20 11:48 UTC (permalink / raw)
To: gcc-bugs
gcc version 3.4.0 (Red Hat Linux 3.4.0-1)
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-languages=c,c++,objc,java,f77
--host=i386-redhat-linux
Thread model: posix
The following code should change the value of rx:
int x=5; int y=3;
int& rx=x; int& ry=y;
((rx>ry) ? rx : ry) = 10;
However is doesn't.
The following code DO change the value of rx:
int x=5; int y=3;
int& rx=x; int& ry=y;
((rx>1) ? rx : ry) = 10;
The same happens for ry.
Compilation command didn't include any flags.
--
Summary: Using references in trinary operator as un lvalue
doesn't change the reference in some case
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ofiravni99 at walla dot co dot il
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16102
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/16102] Using references in trinary operator as un lvalue doesn't change the reference in some case
2004-06-20 11:48 [Bug c++/16102] New: Using references in trinary operator as un lvalue doesn't change the reference in some case ofiravni99 at walla dot co dot il
@ 2004-06-20 11:50 ` ofiravni99 at walla dot co dot il
2004-06-20 15:17 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: ofiravni99 at walla dot co dot il @ 2004-06-20 11:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ofiravni99 at walla dot co dot il 2004-06-20 11:50 -------
Created an attachment (id=6582)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6582&action=view)
The preprocessed file with the bug
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16102
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/16102] Using references in trinary operator as un lvalue doesn't change the reference in some case
2004-06-20 11:48 [Bug c++/16102] New: Using references in trinary operator as un lvalue doesn't change the reference in some case ofiravni99 at walla dot co dot il
2004-06-20 11:50 ` [Bug c++/16102] " ofiravni99 at walla dot co dot il
@ 2004-06-20 15:17 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-20 15:17 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-20 15:17 -------
This is a dup of bug 7503, the problem comes from foldder.
*** This bug has been marked as a duplicate of 7503 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16102
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-06-20 15:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-20 11:48 [Bug c++/16102] New: Using references in trinary operator as un lvalue doesn't change the reference in some case ofiravni99 at walla dot co dot il
2004-06-20 11:50 ` [Bug c++/16102] " ofiravni99 at walla dot co dot il
2004-06-20 15:17 ` pinskia at gcc dot gnu dot org
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).