all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Simon Schubert <2-gnu@0x2c.org>
Cc: 52692@debbugs.gnu.org
Subject: bug#52692: 27.2; wrong-type-argument in c-forward-decl-or-cast-1
Date: Tue, 21 Dec 2021 12:20:03 +0100	[thread overview]
Message-ID: <87sfumgq70.fsf@gnus.org> (raw)
In-Reply-To: <963cd2d8-e0a9-66ea-49e4-b1821f940187@0x2c.org> (Simon Schubert's message of "Mon, 20 Dec 2021 15:18:33 -0800")

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	other threads:[~2021-12-21 11:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-20 23:18 bug#52692: 27.2; wrong-type-argument in c-forward-decl-or-cast-1 Simon Schubert
2021-12-21 11:20 ` Lars Ingebrigtsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sfumgq70.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=2-gnu@0x2c.org \
    --cc=52692@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.