Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 5fd624b9 authored by kraus's avatar kraus
Browse files

fixing issue #125

parent 34c527b9
No related branches found
No related tags found
No related merge requests found
...@@ -175,15 +175,8 @@ namespace Expressions { ...@@ -175,15 +175,8 @@ namespace Expressions {
itsObject = OpalData::getInstance()->find(obj_name); itsObject = OpalData::getInstance()->find(obj_name);
if(itsObject == 0) { if(itsObject == 0) {
if(att_name.empty()) { if(att_name.empty()) {
Object *variable = OpalData::getInstance()->find("REAL_VARIABLE"); throw OpalException("SRefExpr::fill()",
itsObject = variable->clone(obj_name); "\nThe <variable> \"" + obj_name + "\" is unknown.\n");
OpalData::getInstance()->define(itsObject);
if(Options::verify) {
std::cerr << "\nThe <variable> \"" << obj_name
<< "\" is unknown, created with zero value.\n"
<< std::endl;
}
} else { } else {
throw OpalException("SRefExpr::fill()", throw OpalException("SRefExpr::fill()",
"Object \"" + obj_name + "\" is unknown."); "Object \"" + obj_name + "\" is unknown.");
......
...@@ -586,7 +586,7 @@ Statement *OpalParser::readStatement(TokenStream *is) const { ...@@ -586,7 +586,7 @@ Statement *OpalParser::readStatement(TokenStream *is) const {
boost::replace_all(what, "\n", "\n "); boost::replace_all(what, "\n", "\n ");
ERRORMSG(" " << *stat <<" a" << what << '\n' << endl); ERRORMSG(" " << *stat <<" a" << what << '\n' << endl);
stat = readStatement(is); stat = readStatement(is);
exit(1); exit(1);
} }
...@@ -620,6 +620,7 @@ void OpalParser::run() const { ...@@ -620,6 +620,7 @@ void OpalParser::run() const {
boost::replace_all(what, "\n", "\n "); boost::replace_all(what, "\n", "\n ");
ERRORMSG(" " << *stat <<" " << what << '\n' << endl); ERRORMSG(" " << *stat <<" " << what << '\n' << endl);
exit(1);
} catch(ClassicException &ex) { } catch(ClassicException &ex) {
ERRORMSG("\n*** User error detected by function \"" ERRORMSG("\n*** User error detected by function \""
<< ex.where() << "\"" << endl); << ex.where() << "\"" << endl);
...@@ -628,6 +629,7 @@ void OpalParser::run() const { ...@@ -628,6 +629,7 @@ void OpalParser::run() const {
boost::replace_all(what, "\n", "\n "); boost::replace_all(what, "\n", "\n ");
ERRORMSG(" " << *stat <<" " << what << '\n' << endl); ERRORMSG(" " << *stat <<" " << what << '\n' << endl);
exit(1);
} catch(bad_alloc &) { } catch(bad_alloc &) {
ERRORMSG("\n*** Error:" << endl); ERRORMSG("\n*** Error:" << endl);
stat->printWhere(*IpplInfo::Error, false); stat->printWhere(*IpplInfo::Error, false);
...@@ -731,4 +733,4 @@ std::string OpalParser::getHint(const std::string &name, const std::string &type ...@@ -731,4 +733,4 @@ std::string OpalParser::getHint(const std::string &name, const std::string &type
} }
return ""; return "";
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment