Address bug #10910. Replace assert() with a normal fatal error message.

This commit is contained in:
Eric S. Raymond 2008-01-30 18:21:51 +00:00
parent 832f4b4a8b
commit 76558d9b82

View file

@ -672,7 +672,13 @@ bool preprocessor_data::get_chunk()
return true;
}
if (token.type == '{') {
assert(strings_.back().empty());
if (!strings_.back().empty()) {
std::ostringstream error;
std::ostringstream location;
error << "Can't parse new macro parameter with a macro call scope open";
location<<linenum_<<' '<<target_.location_;
target_.error(error.str(), location.str());
}
strings_.pop_back();
}