Fixed #4796 (Missing semicolon after simplified template class)