PHP 4.0 Bug #6759 Updated: java.c does not compile
| From: | Bug Database | Date: | Sun, 15 Oct 2000 02:17:59 +0000 |
| Subject: | PHP 4.0 Bug #6759 Updated: java.c does not compile | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-35033@lists.php.net to get a copy of this message | ||
ID: 6759
User Update by: Wolfram.Schmidt@iao.fhg.de
Status: Open
Bug Type: Compile Failure
Description: java.c does not compile
Problem still exists in 4.0.3 -
gcc compiles this code.
Who is in error?
A long time ago, when I programmed in C, I would have said that Sun C ist right. You need to take
the address of the lvalue, cast it into the correct pointer and dereference it. But what do I know
:-)
(not the recent modifications to the C language standard...)
Previous Comments:
---------------------------------------------------------------------------
[2000-09-14 09:32:48] Wolfram.Schmidt@iao.fhg.de
Using Sun C 5.0 I get the following error message:
"java.c", line 555: a cast does not yield an lvalue
With incompetent modification of the casts I get this down to: warning: improper pointer/integer
combination: op "="
I can't test it because there are other compile failures. which I will report later.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6759