Commit 59257980 by Hans-Peter Nilsson Committed by Jeff Law

* c-lex.c [! NO_IMPLICIT_EXTERN_C] (cb_enter_file): Check

        in_system_header and flags[1] before dereferencing flags[2].

From-SVN: r37361
parent 881a8969
2000-11-09 Hans-Peter Nilsson <hp@axis.com>
* c-lex.c [! NO_IMPLICIT_EXTERN_C] (cb_enter_file): Check
in_system_header and flags[1] before dereferencing flags[2].
2000-11-09 Matthew Hiller <hiller@redhat.com>
* reload1.c (reload_combine): Fixed calculation of
......
......@@ -714,7 +714,7 @@ cb_enter_file (pfile)
#ifndef NO_IMPLICIT_EXTERN_C
if (c_header_level)
++c_header_level;
else if (flags[2] != 0)
else if (in_system_header && flags[1] != 0 && flags[2] != 0)
{
c_header_level = 1;
++pending_lang_change;
......
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