* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): While testing for,
e.g., foo(), check we've found the ( before trying to go to its position.
(not got-prefix)
(or (eq context 'top) make-top)
(eq (char-after) ?\))
+ after-paren-pos
(or (memq at-type '(nil maybe))
(not got-identifier)
(save-excursion
;; (con|de)structors in C++ and `c-typeless-decl-kwds'
;; style declarations. That isn't applicable in an
;; arglist context, though.
- (when (and (> paren-depth 0)
+ (when (and (> paren-depth 0) ; ensures `after-paren-pos' is non-nil
(not got-prefix-before-parens)
(not (eq at-type t))
(or backup-at-type