GNU bug report logs -
#52692
27.2; wrong-type-argument in c-forward-decl-or-cast-1
Previous Next
Reported by: Simon Schubert <2-gnu <at> 0x2c.org>
Date: Tue, 21 Dec 2021 01:17:02 UTC
Severity: normal
Found in version 27.2
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 52692 <at> debbugs.gnu.org (full text, mbox):
Simon Schubert <2-gnu <at> 0x2c.org> writes:
> Invoking c-context-line-break leads to wrong-type-argument if used with
> a custom type, but not when used with a struct. See example below:
>
> typedef struct some_type_struct {
> int some_field;
> } some_type;
>
> void foo(some_type t) {
> }
>
> void test(void) {
> foo((struct some_type_struct){ // fine: (c-context-line-break)
> });
> foo((some_type){ // error: (c-context-line-break)
> });
> }
>
> In GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw scroll
> bars)
I can reproduce this in Emacs 27.2, but not in Emacs 28, so it seems
like this problem is fixed for the next Emacs release, and I'm therefore
closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 3 years and 206 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.