bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#52692: 27.2; wrong-type-argument in c-forward-decl-or-cast-1


From: Lars Ingebrigtsen
Subject: bug#52692: 27.2; wrong-type-argument in c-forward-decl-or-cast-1
Date: Tue, 21 Dec 2021 12:20:03 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Simon Schubert <2-gnu@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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]