Errors and warnings inside CGINCLUDE/HLSLINCLUDE/GLSLINCLUDE blocks are reported at the wrong line, one too high for the first block, and shifted further for blocks after another include block or after a program block in a different language.
Repro: an unknown #pragma inside an HLSLINCLUDE block. The reported line doesn't match the pragma's line.