Article View: muc.lists.netbsd.tech.kern
Article #38Re: Do all -current compilers support C23 typed enum syntax?
From: Chris Hanson
Date: Thu, 03 Dec 2026 22:51
Date: Thu, 03 Dec 2026 22:51
32 lines
3229 bytes
3229 bytes
On Dec 3, 2026, at 2:24 PM, Taylor R Campbell <riastradh@netbsd.org> wrote: > > >> >> Date: Thu, 3 Dec 2026 14:02:21 -0800 >> From: Chris Hanson <cmhanson@eschatologist.net> >> >>>> On Dec 3, 2026, at 4:20 AM, Greg Troxel <gdt@lexort.com> wrote: >>> >>> Would this mean that programs that either >>> use your API >>> include a header where this is defined >>> >>> could only be compiled with a compiler in --std=c23 mode? >> >> This is a good point. Apparently -current (both the userspace and >> kernel) are compiled in --std=c23 mode, but I didn't check whether >> that was explicitly passed or whether it was the compiler's default. > > How did you conclude that? Like I said, I didn’t check. I just tried it and it worked. Maybe the GNU extensions added typed enums well before C23. — Chris -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<175AE7F8-ABBF-445D-8E49-C1247DA5F828@eschatologist.net>Path:
mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!weretis.net!feeder8.news.weretis.net!news.szaf.org!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<20261203222439.AAD9484D19@mail.netbsd.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!weretis.net!feeder8.news.weretis.net!news.szaf.org!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail From: Chris Hanson <cmhanson@eschatologist.net> Newsgroups: muc.lists.netbsd.tech.kern Subject: Re: Do all -current compilers support C23 typed enum syntax? Date: Thu, 3 Dec 2026 14:51:19 -0800 Organization: Newsgate at muc.de e.V. Sender: tech-kern-owner@NetBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <175AE7F8-ABBF-445D-8E49-C1247DA5F828@eschatologist.net> References: <20261203222439.AAD9484D19@mail.netbsd.org> MIME-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="54769"; mail-complaints-to="news-admin@muc.de" Authentication-Results: mail.netbsd.org (amavisd-new); dkim=pass (2048-bit key) header.d=eschatologist.net X-Sender-Id: dreamhost|x-authsender|cmhanson@eschatologist.net X-Sender-Id: dreamhost|x-authsender|cmhanson@eschatologist.net X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|cmhanson@eschatologist.net X-MailChannels-Auth-Id: dreamhost X-Abiding-Oafish: 152033e5067e0c5f_1796338290531_4010775144 X-MC-Loop-Signature: 1796338290531:3741687939 X-MC-Ingress-Time: 1796338290530 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eschatologist.net; s=dreamhost; t=1796338290; bh=53gNUhLFQsWaMmQhKNelbYoolYium7+Dt8+J+Ls94tc=; h=Content-Type:Content-Transfer-Encoding:From:Subject:Date:Cc:To; b=ZqZKFAILXVdCEy9oXkPs4KLACoz1zi8ejzeWQo/Sic57TIz0hszbgtpxBpERdHPRX Knkbt+G9jtEaJpEHsKs/kfmg3EmbIPS+5+fpAjlFORLxKd1S+KtEpkXZ6bHDT0mXTm 4UmVpl0JPyiBcFKw7eqdfMpwdAnU0WItpYN+xAzw8BLWqPNHBWnKElYVNW2HhSnVKG 9vhHtZ3haRBUPKHVHVAS41y6zPwheabwan/5+ln9Rx3PoYLJ18rK2OLe88JoxpIwWT TDNyZ5gbkLzyC7cRElLkaxT5KffOWh34E9eN+YrnXGMPeG+yK60oVhGZ9LKUwEQNOq i5ceOciSkLBlw== In-Reply-To: <20261203222439.AAD9484D19@mail.netbsd.org> Precedence: bulk X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes