gcc.c-torture/compile/981001-4.c broken

Jeffrey A Law law@cygnus.com
Thu Oct 22 15:49:00 GMT 1998


  In message < vyzr9w2uwgs.fsf@issan.cs.uni-dortmund.de >you write:
  > Jeffrey A Law <law@cygnus.com> writes:
  > 
  > |> Can you submit a testcase for the gcc extension that is failing so that 
  > we
  > |> have a test for it too :-)
  > 
  > $ cat lvalue.c
  > int x, y;
  > 
  > int main ()
  > {
  >   (x ?: y) = 0;
  >   return 0;
  > }
  > $ gcc lvalue.c
  > lvalue.c: In function `main':
  > lvalue.c:5: invalid lvalue in assignment
  > 
  > This is a combination of two gcc extensions: omitting the middle operand
  > of ?: and using ?: as lvalue.  If this is not easy to fix then it is
  > probably not worth doing.
Thanks.  I installed this as a new test, expected to fail on all targets.

jeff



More information about the Gcc-patches mailing list