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: law at cygnus dot com
- Subject: Re: gcc.c-torture/compile/981001-4.c broken
- From: Andreas Schwab <schwab at issan dot informatik dot uni-dortmund dot de>
- Date: 21 Oct 1998 10:53:53 +0200
- Cc: egcs-patches at cygnus dot com
- References: <9417.908382841@hurl.cygnus.com>
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.
Andreas.