* 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.
This commit is contained in:
Alan Mackenzie 2021-10-18 16:49:19 +00:00
parent 5a3242301d
commit 8e8a920246

View file

@ -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))))