mirror of
https://github.com/boostorg/wave.git
synced 2026-01-26 07:02:23 +00:00
Wave: Fixed a bug resulting in a crash if a macro was redefined with a shorter expansion list as it was defined initially. Added a corresponding test case.
[SVN r34926]
This commit is contained in:
@@ -1080,6 +1080,12 @@ main (int argc, char *argv[])
|
||||
return do_actual_work("<stdin>", std::cin, vm, true);
|
||||
}
|
||||
else {
|
||||
if (arguments.size() > 1) {
|
||||
// this driver understands to parse one input file only
|
||||
cerr << "wave: more than one input file specified, "
|
||||
<< "ignoring all but the first!" << endl;
|
||||
}
|
||||
|
||||
std::string file_name(arguments[0].value[0]);
|
||||
ifstream instream(file_name.c_str());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user