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

From: Lars Ingebrigtsen <[email-masked]>
Date: Tue, 21 Dec 2021 12:20:03 +0100

Simon Schubert <[email-masked]> 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