This line in the program you say works should cause the program to not compile.
Code:
D_Receiver PORTB.2       'data receiver
You forgot the VAR.