Pelles C > Bug reports

Compiler 64bits V12 bug on line "d->m_dict[TDEFL_LZ_DICT_SIZE + dst_pos] = c;"

(1/1)

frankie:
Attached an offending sample project reduced to minimal
The line:

--- Code: ---d->m_dict[TDEFL_LZ_DICT_SIZE + dst_pos] = c;
--- End code ---
Generate a compiler bug.
The workaround:

--- Code: --- if (dst_pos < (TDEFL_MAX_MATCH_LEN - 1))
{
//d->m_dict[TDEFL_LZ_DICT_SIZE + dst_pos] = c; //Compiler failure line! Compiler BUG
int appo = TDEFL_LZ_DICT_SIZE + dst_pos;
d->m_dict[appo] = c;
}

--- End code ---
The bug affects only the 64bits targets. 32bits targets aren't affected by the bug.

Navigation

[0] Message Index

Go to full version