Address bug #10910. Replace assert() with a normal fatal error message.
This commit is contained in:
parent
832f4b4a8b
commit
76558d9b82
1 changed files with 7 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue