This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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



  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]