public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/12877] New: conditional as lvalue gives wrong warning
@ 2003-11-02 18:21 falk at debian dot org
  2003-11-02 21:10 ` [Bug c/12877] " jsm at polyomino dot org dot uk
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: falk at debian dot org @ 2003-11-02 18:21 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12877

           Summary: conditional as lvalue gives wrong warning
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: falk at debian dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: alphaev68-unknown-linux-gnu
  GCC host triplet: alphaev68-unknown-linux-gnu
GCC target triplet: alphaev68-unknown-linux-gnu

falk@juist:~% cat bug1.c       
void f (void) {
    char c, d;
    (1 ? c : d) = 0;
}

falk@juist:~% gcc -c bug1.c 
bug1.c: In function `f':

bug1.c:3: warning: use of cast expressions as lvalues is deprecated

But it's a conditional, not a cast, and I think this extension isn't
deprecated.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-01-23  3:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-02 18:21 [Bug c/12877] New: conditional as lvalue gives wrong warning falk at debian dot org
2003-11-02 21:10 ` [Bug c/12877] " jsm at polyomino dot org dot uk
2003-11-02 21:36 ` falk dot hueffner at student dot uni-tuebingen dot de
2003-11-05  4:25 ` pinskia at gcc dot gnu dot org
2003-11-09  2:06 ` pinskia at gcc dot gnu dot org
2003-12-21 23:58 ` pinskia at gcc dot gnu dot org
2004-01-23  3:46 ` 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).