From 39566df2daf50b5416c7c78b89c10b7484aba576 Mon Sep 17 00:00:00 2001 From: Serguei Makarov Date: Mon, 30 Jul 2012 14:38:27 -0400 Subject: [PATCH] PR11207: fix segfault in macro invocation parser. --- parse.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.cxx b/parse.cxx index 8101bca4e..830e0f372 100644 --- a/parse.cxx +++ b/parse.cxx @@ -567,7 +567,7 @@ parser::scan_pp1 () // for simplicity, we do not allow macro constructs here // -- if we did, we'd have to recursively call scan_pp1() t = next_pp1 (); - if (! (t->type == tok_operator && t->content == "(")) + if (! (t && t->type == tok_operator && t->content == "(")) { delete new_act; throw parse_error (_F(ngettext -- 2.43.5