This fixes bug#72126.
* lisp/progmodes/cc-engine.el (c-forward-<>-arglist): Remove
tentative type identifier from c-record-type-identifiers should
it turn out not to be a type.
(cherry picked from commit
caf7426f0ca280b7cf40736e595cad8f7361152f)
;; This function might do hidden buffer changes.
(let ((start (point))
+ (old-record-type-identifiers c-record-type-identifiers)
(old-found-types (copy-hash-table c-found-types))
;; If `c-record-type-identifiers' is set then activate
;; recording of any found types that constitute an argument in
(nconc c-record-found-types c-record-type-identifiers)))
t)
- (setq c-found-types old-found-types)
+ (setq c-record-type-identifiers old-record-type-identifiers
+ c-found-types old-found-types)
(goto-char start)
nil))))