Fix a crash when using an undeclared identifier (Jira #ROOT-10193)

This commit is contained in:
Bertrand Bellenot 2019-09-23 17:38:33 +02:00 committed by SFT
parent 1a1a84dfcb
commit e7ae55720e

View File

@ -99,6 +99,8 @@ namespace cling {
void CompilationException::throwingHandler(void * /*user_data*/,
const std::string& reason,
bool /*gen_crash_diag*/) {
#ifndef _MSC_VER
throw cling::CompilationException(reason);
#endif
}
} // end namespace cling