From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#51092: [PATCH] Recognize consteval and constinit modifiers in C++ Date: Tue, 13 Sep 2022 17:26:25 +0000 Message-ID: References: <8735pbrd91.fsf@gnus.org> <87bkrnq01j.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4311"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51092@debbugs.gnu.org, acm@muc.de, Evan Klitzke To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 13 19:27:31 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oY9h5-0000sI-RE for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Sep 2022 19:27:31 +0200 Original-Received: from localhost ([::1]:60638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oY9h4-0001La-GU for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Sep 2022 13:27:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oY9gc-0001LC-TI for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2022 13:27:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35906) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oY9gc-00073I-LN for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2022 13:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oY9gc-0005T1-DM for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2022 13:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Sep 2022 17:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51092 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 51092-submit@debbugs.gnu.org id=B51092.166308999520973 (code B ref 51092); Tue, 13 Sep 2022 17:27:02 +0000 Original-Received: (at 51092) by debbugs.gnu.org; 13 Sep 2022 17:26:35 +0000 Original-Received: from localhost ([127.0.0.1]:52838 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oY9gB-0005SD-E4 for submit@debbugs.gnu.org; Tue, 13 Sep 2022 13:26:35 -0400 Original-Received: from mx3.muc.de ([193.149.48.5]:27963) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oY9g8-0005Rx-AD for 51092@debbugs.gnu.org; Tue, 13 Sep 2022 13:26:34 -0400 Original-Received: (qmail 84404 invoked by uid 3782); 13 Sep 2022 19:26:25 +0200 Original-Received: from acm.muc.de (p4fe15bc6.dip0.t-ipconnect.de [79.225.91.198]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 13 Sep 2022 19:26:25 +0200 Original-Received: (qmail 7081 invoked by uid 1000); 13 Sep 2022 17:26:25 -0000 Content-Disposition: inline In-Reply-To: <87bkrnq01j.fsf@gnus.org> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:242403 Archived-At: Hello, Lars and Evan. On Sat, Sep 10, 2022 at 07:19:04 +0200, Lars Ingebrigtsen wrote: > Alan Mackenzie writes: > >> > - c++ (append '("constexpr" "explicit" "friend" "mutable" "template" > >> > - "thread_local" "virtual") > >> > + c++ (append '("consteval" "constexpr" "constinit" "explicit" > >> > + "friend" "mutable" "template" "thread_local" "virtual") > >> Makes sense to me; perhaps Alan has some comments, so I've added him to > >> the CCs. > > As the maintainer of CC Mode, i'm in two minds over this. It's clearly > > a step in the right direction. But there's a non-trivial amount of work > > to be done to implement C++20's new features, and having just those few > > new keywords and nothing else in the release branch might jar. > There wasn't much followup here. Sorry, I think that was my fault. > Alan, isn't the proposed patch a step in the right direction anyway, > even if it doesn't add full C++20 support? Yes, I think it's time to apply the patch. It would have been a year ago, too. Are you (Lars) going to apply it, or should I? Just as a matter of interest, I'm working on C++20 stuff at the moment, and have an almost ready implementation of module/import/export. -- Alan Mackenzie (Nuremberg, Germany).