Fix C++ check-syntax bug