add line numbers to codegen errors

cast expression will reinterpret cast classes