[BUG #7043] throw syntax exception if illegal syntax