From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from unasav8.un.org (unasav8.un.org [85.159.201.189]) by sourceware.org (Postfix) with ESMTPS id 388AB3858434 for ; Thu, 5 May 2022 09:39:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 388AB3858434 IronPort-SDR: r6z+I96JrWuRdFJ5Hqchphs3KICAQRteCwc0v1w45Pcb2lOHOSfT5/cYRebPlY8qJlwqq6jgGb S7DTgTWsQ4zA== X-IronPort-AV: E=Sophos;i="5.91,200,1647316800"; d="scan'208,217";a="893295281" Received: from oict-mx7-p-serv-001.ptc.un.org (HELO nyvm2548.ptc.un.org) ([10.250.30.249]) by NY-MAIL-I-ASPM-006.edc.un.org with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 05 May 2022 05:39:42 -0400 Received: from esamail.un.org (ny-lb-p-snip-001.ptc.un.org [10.250.30.130]) by nyvm2548.ptc.un.org (8.14.4/8.14.4) with SMTP id 2458qXDs017222 for ; Thu, 5 May 2022 05:38:41 -0400 Message-ID: X-lyris-type: hello From: "Lyris ListManager" To: 💛 Beverly want to play with you! Start Play: "http://inx.lv/GlxE?rpfm5 💛" Subject: Re: UN DESA Voice monthly newsletter Date: Thu, 05 May 2022 03:49:51 -0400 MIME-Version: 1.0 X-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_50, GB_FAKE_RF_SHORT, HTML_MESSAGE, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, KAM_SHORT, SPF_HELO_NONE, SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2022 09:39:50 -0000 You have been subscribed to TCL MERGE ERROR ( 05/05/2022 04:52:51 ): "invalid command name "list.descshort"" OutmailID: 8636772, List: 'desanewscollector', MemberID: 7064244 SCRIPT: "list.descshort" with the email address "gcc-bugs@gcc.gnu.org" To unsubscribe, click here: https://esamail.un.org/u?id=7064244.b8dbd1aaa4772ff7fc626c37353fae86&n=T&l=desanewscollector&o=8636772 >>From gcc-bugzilla@gcc.gnu.org Thu May 5 09:57:50 2022 Return-Path: X-Original-To: gcc-bugs@gcc.gnu.org Delivered-To: gcc-bugs@gcc.gnu.org Received: by sourceware.org (Postfix, from userid 48) id 90D7F3857405; Thu, 5 May 2022 09:57:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 90D7F3857405 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/105491] New: Usafe of __constinit with -std=c++ does is rejected Date: Thu, 05 May 2022 09:57:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2022 09:57:50 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105491 Bug ID: 105491 Summary: Usafe of __constinit with -std=3Dc++ does is rejected Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: mpolacek at gcc dot gnu.org Target Milestone: --- Created attachment 52930 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D52930&action=3Dedit test-case Noticed that in protobuf package: https://github.com/protocolbuffers/protobuf/issues/9916 $ g++ 12.ii -c -std=3Dc++11 x.cc:39:123: error: =E2=80=98constinit=E2=80=99 variable =E2=80=98_ProtobufCFileOptions_default_instance_=E2=80=99 does not have a c= onstant initializer 39 | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProtobufCFileOptionsDefaultTypeInternal _ProtobufCFileOptions_default_instance_; |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x.cc:39:123: error: =E2=80=98ProtobufCFileOptionsDefaultTypeInternal{ProtobufCFileOptionsDefaul= tTypeInternal::{ProtobufCFileOptions{google::protobuf::Message{google::protobuf::Mes= sageLite{((& ProtobufCFileOptions::_ZTV20ProtobufCFileOptions) + 16), google::protobuf::internal::InternalMetadata{0}}}, google::protobuf::internal::HasBits<1>{uint32_t [1]()}, google::protobuf::internal::CachedSize{std::atomic{std::__atomic_base<= int>{0}}}, google::protobuf::internal::ArenaStringPtr{google::protobuf::internal::Tagg= edStringPtr{((void*)(& google::protobuf::internal::fixed_address_empty_string))}}, false, false, false, true, true}}}=E2=80=99 is not a constant expression x.cc:53:126: error: =E2=80=98constinit=E2=80=99 variable =E2=80=98_ProtobufCMessageOptions_default_instance_=E2=80=99 does not have = a constant initializer 53 | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProtobufCMessageOptionsDefaultTypeInternal _ProtobufCMessageOptions_default_instance_; |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x.cc:53:126: error: =E2=80=98ProtobufCMessageOptionsDefaultTypeInternal{ProtobufCMessageOptions= DefaultTypeInternal::{ProtobufCMessageOptions{google::protobuf::Message{google::protobuf::= MessageLite{((& ProtobufCMessageOptions::_ZTV23ProtobufCMessageOptions) + 16), google::protobuf::internal::InternalMetadata{0}}}, google::protobuf::internal::HasBits<1>{uint32_t [1]()}, google::protobuf::internal::CachedSize{std::atomic{std::__atomic_base<= int>{0}}}, google::protobuf::internal::ArenaStringPtr{google::protobuf::internal::Tagg= edStringPtr{0}}, false, true}}}=E2=80=99 is not a constant expression x.cc:65:124: error: =E2=80=98constinit=E2=80=99 variable =E2=80=98_ProtobufCFieldOptions_default_instance_=E2=80=99 does not have a = constant initializer 65 | PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ProtobufCFieldOptionsDefaultTypeInternal _ProtobufCFieldOptions_default_instance_; |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ x.cc:65:124: error: =E2=80=98ProtobufCFieldOptionsDefaultTypeInternal{ProtobufCFieldOptionsDefa= ultTypeInternal::{ProtobufCFieldOptions{google::protobuf::Message{google::protobuf::Me= ssageLite{((& ProtobufCFieldOptions::_ZTV21ProtobufCFieldOptions) + 16), google::protobuf::internal::InternalMetadata{0}}}, google::protobuf::internal::HasBits<1>{uint32_t [1]()}, google::protobuf::internal::CachedSize{std::atomic{std::__atomic_base<= int>{0}}}, false}}}=E2=80=99 is not a constant expression x.cc: In member function =E2=80=98virtual uint8_t* ProtobufCMessageOptions::_InternalSerialize(uint8_t*, google::protobuf::io::EpsCopyOutputStream*) const=E2=80=99: x.cc:499:1: warning: no return statement in function returning non-void [-Wreturn-type] 499 | } | ^ $ g++ 12.ii -c -std=3Dc++17 x.cc: In member function =E2=80=98virtual uint8_t* ProtobufCMessageOptions::_InternalSerialize(uint8_t*, google::protobuf::io::EpsCopyOutputStream*) const=E2=80=99: x.cc:499:1: warning: no return statement in function returning non-void [-Wreturn-type] 499 | } | ^=