This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: gcc.c-torture/compile/981001-4.c broken
- To: Andreas Schwab <schwab at issan dot informatik dot uni-dortmund dot de>
- Subject: Re: gcc.c-torture/compile/981001-4.c broken
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 22 Oct 1998 16:03:27 -0600
- cc: egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
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