Bear with me - I'm an occasional programmer - .. plenty of cutting and pasting from working projects when it works, great - when it doesn't it's a pain.
I've NEVER come across this INTERNAL compiler error before and it occurs when I use my timer routine which uses function pointers.
I've been using this function/method for ages and it works fine with a MEGA168 and others .. but I've just ported to a MEGA32 and the compilation fails.
Here's the call which causes the error:
setup_timer (timer_no,time_value,calledfunction,callingparam );
Here's the Definition:
void setup_timer (unsigned char,unsigned short, void(*)(unsigned int),unsigned int);
The function stores the data in a table and starts a timer.
A timer function is then regularly called and uses the data to execute the function when the timer expires.
I'm stuck for a solution unless somebody can assist or give some clues.