Weird behavior of function pointers on ATmega328p

I also thought about using stuff like SiSy AVR and Atmel Studio. Ended up with atmel studio and some weird linker error.