From 8e8a9202469d568b18ea97319e5627fefd833c0b Mon Sep 17 00:00:00 2001 From: Alan Mackenzie Date: Mon, 18 Oct 2021 16:49:19 +0000 Subject: [PATCH] * lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): check type-start Check type-start is non-nil at L659 of the function. --- lisp/progmodes/cc-engine.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index 20cdb72ccf1..c42c95764a2 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el @@ -10409,6 +10409,7 @@ This function might do hidden buffer changes." ;; are directly inside a class (etc.) called "bar". (save-excursion (and + type-start (progn (goto-char name-start) (not (memq (c-forward-type) '(nil maybe)))) -- 2.39.2