Anonymous - 2010-11-24

#include <pic16f877a.h>
struct t_test
{
unsigned char step;
};

struct t_test test;

void Test(struct t_test * obj, volatile unsigned char * port, volatile unsigned char * lath, volatile unsigned char * tris, unsigned char mask)
{
switch(obj->step)
{
case 1:
*lath |= mask;
*port = *lath;
break;
}
}

volatile unsigned char port, lath, tris;

void main(void)
{
Test(&test, &port, &lath, &tris, 0x01);
while(1);
}

/*
This code give the error:

TEST.C:18: error 9: FATAL Compiler Internal Error in file '/home/sdcc-builder/build/sdcc-build/orig/sdcc/src/pic/gen.c' line number '5550' : size > 0 && size <= 4
Contact Author with source code
*/