Article View: comp.std.c
Article #4242Re: Comma operator in constant expression
From: Kevin D. Quitt
Date: Thu, 19 Oct 1995 00:56
Date: Thu, 19 Oct 1995 00:56
13 lines
973 bytes
973 bytes
Paul Long <plong@perf.com> wrote: > static int i = 1 ? 3 : (1, 2); >Neither Sun's acc compiler or Gnu's 2.6.0 >compiler generate a diagnostic for this declaration. Does that mean that they >are NOT conforming implementations? If they are, please explain. Do you get get same result if you change the left-hand 1 to a 0? If not, it may be that the second half of the expression is never even examined. -- #include <standard.disclaimer> _ Kevin D Quitt USA 91351-4454 96.37% of all statistics are made up
Technical Details
Message-ID:
<1995Oct19.005829.12311@llyene.jpl.nasa.gov>Path:
arc1-ca.pugleaf.net!elroy.jpl.nasa.gov!llyene!newsReferences:
<45uevf$d99@news0.rain.rg.net>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c Path: arc1-ca.pugleaf.net!elroy.jpl.nasa.gov!llyene!news From: kdq@emoryi.jpl.nasa.gov (Kevin D. Quitt) Subject: Re: Comma operator in constant expression Message-ID: <1995Oct19.005829.12311@llyene.jpl.nasa.gov> Sender: news@llyene.jpl.nasa.gov Reply-To: kdq@emoryi.jpl.nasa.gov Organization: Jet Propulsion Laboratory X-Newsreader: Forte Agent .99b.112 References: <45uevf$d99@news0.rain.rg.net> Date: Thu, 19 Oct 1995 00:56:14 GMT