When using the CCS compiler's multiple compilation units feature, I stumbled upon what seems to be a pretty serious bug:
The setup is a header file defining a #bit in a #byte, two compilation units #include-ing the header file and a function referring to said #bit.
It seems that the function's code (specifically using the correct address to said #bit) depends on said function resides in the same compilation unit as the main() function.
Any ideas?