The following snippet fails to create the correct
iCodes from AST nodes. Actually, no iCodes are
generated to perform the increasing of the c pointer.
#define SHOW_BUG 0
char reg(char *c)
*(char **)c++; // <-- this doesn't increment
*(char **)c+=1; // <-- this increments correct
volatile char cc, bb;
bb = reg( &cc );
Tested with SDCC version 2.4.8 #967.
All ports fail.
Log in to post a comment.