Commit 2efc92ed by Richard Kenner

(report_error_function): Don't attempt to use input file stack to identify...

(report_error_function): Don't attempt to use input file stack to
identify nesting of #include's if file name oflocation diagnosed is
not same as input_filename.

From-SVN: r10271
parent 27ed242c
......@@ -1048,7 +1048,8 @@ report_error_function (file)
(*print_error_function) (file);
if (input_file_stack && input_file_stack->next != 0
&& input_file_stack_tick != last_error_tick)
&& input_file_stack_tick != last_error_tick
&& file == input_filename)
{
fprintf (stderr, "In file included");
for (p = input_file_stack->next; p; p = p->next)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment