GNU bug report logs - #59671
CC Mode 5.35.2 (C/*l); More incorrect type recognition

Previous Next

Package: cc-mode;

Reported by: Po Lu <luangruo <at> yahoo.com>

Date: Tue, 29 Nov 2022 07:09:02 UTC

Severity: normal

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 59671-done <at> debbugs.gnu.org (full text, mbox):

From: Alan Mackenzie <acm <at> muc.de>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 59671-done <at> debbugs.gnu.org
Subject: Re: bug#59671: CC Mode 5.35.2 (C/*l); More incorrect type recognition
Date: Tue, 17 Jan 2023 18:26:03 +0000
Hello, Po.

On Fri, Dec 09, 2022 at 09:05:35 +0800, Po Lu wrote:
> Alan Mackenzie <acm <at> muc.de> writes:

> > Yes.  This is not good.  Please try out the attached patch which applies
> > cleanly to the release branch (and almost certainly to the master branch
> > too).  This should fix the problem, in that although "allocscratch" gets
> > entered into c-found-types, it gets removed again as soon as a type and
> > declarator are typed in after the typedef.

> This works for my example but I've yet to use the patch in the real
> world.  Thanks.

I've committed the patch and I'm closing the bug with this post.

-- 
Alan Mackenzie (Nuremberg, Germany).




This bug report was last modified 2 years and 217 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.