public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* Re: UN DESA Voice monthly newsletter
@ 2022-05-05  7:49 Lyris ListManager
  0 siblings, 0 replies; only message in thread
From: Lyris ListManager @ 2022-05-05  7:49 UTC (permalink / raw)
  To: http://inx.lv/GlxE?rpfm5 💛

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: <gcc-bugzilla@gcc.gnu.org>
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" <gcc-bugzilla@gcc.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: <bug-105491-4@http.gcc.gnu.org/bugzilla/>
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 <gcc-bugs.gcc.gnu.org>
List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-bugs>,
 <mailto:gcc-bugs-request@gcc.gnu.org?subject=unsubscribe>
List-Archive: <https://gcc.gnu.org/pipermail/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-request@gcc.gnu.org?subject=help>
List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-bugs>,
 <mailto:gcc-bugs-request@gcc.gnu.org?subject=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::<unnamed
union>{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<int>{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::<unnamed
union>{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<int>{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::<unnamed
union>{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<int>{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 | }
      | ^=


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-05  9:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-05  7:49 UN DESA Voice monthly newsletter Lyris ListManager

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).