GNU bug report logs - #8438
24.0.50; C++ macro make indentation fail

Previous Next

Packages: cc-mode, emacs;

Reported by: Andrea Crotti <andrea.crotti.0 <at> gmail.com>

Date: Thu, 7 Apr 2011 11:28:02 UTC

Severity: normal

Found in version 24.0.50

Fixed in version 24.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 8438 <at> debbugs.gnu.org (full text, mbox):

From: Daniel Colascione <dan.colascione <at> gmail.com>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: Alan Mackenzie <acm <at> muc.de>, 8438 <at> debbugs.gnu.org
Subject: Re: bug#8438: 24.0.50; C++ macro make indentation fail
Date: Sun, 24 Apr 2011 17:41:43 -0700
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 4/24/11 11:13 AM, Chong Yidong wrote:
> Daniel Colascione <dan.colascione <at> gmail.com> writes:
> 
>> The problem actually has nothing to do with the macro:
>> c-forward-decl-or-cast-1 is choking on the const because it's mistaking
>> it for something that might be part of a member function pointer.
>> Because c-forward-decl-or-cast-1 fails inside
>> c-just-after-func-arglist-p, c-guess-basic-offset tries the next best
>> thing, which happens to be a template argument continuation.
>>
>> The attached patch resolves the issue.
> 
> Looks OK to me.  Please check if the same fix is required on the
> emacs-23 branch, and if so commit it there.

Patch installed on trunk and emacs-23 branches.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)

iEYEARECAAYFAk20w0UACgkQ17c2LVA10VsvUACgjJkU8ilA+FQKTLeb1sktOh3v
7pgAnAkepNMKF7od5ut6A8REml1MJS1v
=Q3C/
-----END PGP SIGNATURE-----




This bug report was last modified 13 years and 290 days ago.

Previous Next


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