# New Ticket Created by David Lloyd
# Please include the string: [netlabs #605]
# in the subject line of all future correspondence about this issue.
# <URL: http://bugs6.perl.org/rt2/Ticket/Display.html?id=605 >
I get:
cc -mt -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I./include -DHAS_JIT -DSUN4 -o string.o -c string.c
"string.c", line 274: left operand must be modifiable lvalue: op "|="
"string.c", line 281: left operand must be modifiable lvalue: op "&="
"string.c", line 432: left operand must be modifiable lvalue: op "|="
"string.c", line 521: left operand must be modifiable lvalue: op "&="
"string.c", line 579: left operand must be modifiable lvalue: op "|="
"string.c", line 582: left operand must be modifiable lvalue: op "|="
"string.c", line 599: left operand must be modifiable lvalue: op "&="
"string.c", line 600: left operand must be modifiable lvalue: op "&="
cc: acomp failed for string.c
gmake: *** [string.o] Error 2
for this bit of code:
STRING *
string_concat(struct Parrot_Interp *interpreter, const STRING *a,
const STRING *b, UINTVAL Uflags)
{
... some stuff ...
b->flags |= BUFFER_neonate_FLAG; /* <- modifies a const STRING * */
... more of the same ...
b->flags &= ~(UINTVAL)BUFFER_neonate_FLAG; /* ditto */
... etc ...
Either this needs to not be const or some other consideration needs to be
made.
- D
<[EMAIL PROTECTED]>