public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/105491] [10/11/12/13 Regression] Usage of __constinit with -std=c++11 does is rejected
Date: Thu, 05 May 2022 14:48:37 +0000	[thread overview]
Message-ID: <bug-105491-4-NxbROH0Km0@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-105491-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105491

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2022-05-05
   Target Milestone|---                         |10.4
            Summary|Usage of __constinit with   |[10/11/12/13 Regression]
                   |-std=c++11 does is rejected |Usage of __constinit with
                   |                            |-std=c++11 does is rejected
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |ppalka at gcc dot gnu.org
             Status|UNCONFIRMED                 |NEW

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Related
class Message {
  virtual int GetMetadata();
};
class ProtobufCFileOptions : Message {
public:
  constexpr ProtobufCFileOptions(int);
  bool no_generate_;
  bool const_strings_;
  bool use_oneof_field_name_;
  bool gen_pack_helpers_;
  bool gen_init_helpers_;
};
constexpr ProtobufCFileOptions::ProtobufCFileOptions(int)
    : no_generate_(), const_strings_(), use_oneof_field_name_(),
      gen_pack_helpers_(), gen_init_helpers_() {}
struct ProtobufCFileOptionsDefaultTypeInternal {
  constexpr ProtobufCFileOptionsDefaultTypeInternal() : _instance({}) {}
  union {
    ProtobufCFileOptions _instance;
  };
};
constexpr ProtobufCFileOptionsDefaultTypeInternal
_ProtobufCFileOptions_default_instance_;
is rejected starting with r10-7313-gb599bf9d6d1e180d350b71e51e08a66a1bb1546a
when using -std=c++11 or -std=c++14.
Though, I don't see how it could be changing the active union member when there
is just one member...

  parent reply	other threads:[~2022-05-05 14:48 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-105491-4@http.gcc.gnu.org/bugzilla/>
2022-05-05 11:55 ` [Bug c++/105491] " redi at gcc dot gnu.org
2022-05-05 14:38 ` mpolacek at gcc dot gnu.org
2022-05-05 14:48 ` jakub at gcc dot gnu.org [this message]
2022-05-05 14:51 ` [Bug c++/105491] [10/11/12/13 Regression] " mpolacek at gcc dot gnu.org
2022-05-05 14:57 ` mpolacek at gcc dot gnu.org
2022-05-05 14:58 ` mpolacek at gcc dot gnu.org
2022-05-05 15:01 ` mpolacek at gcc dot gnu.org
2022-05-06 13:47 ` ppalka at gcc dot gnu.org
2022-05-09 13:53 ` cvs-commit at gcc dot gnu.org
2022-05-16  8:46 ` [Bug c++/105491] [10/11/12 " marxin at gcc dot gnu.org
2022-06-01 12:51 ` cvs-commit at gcc dot gnu.org
2022-06-01 12:53 ` [Bug c++/105491] [10/11 " ppalka at gcc dot gnu.org
2022-06-28 10:49 ` jakub at gcc dot gnu.org
2023-05-21 15:05 ` ppalka at gcc dot gnu.org

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=bug-105491-4-NxbROH0Km0@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.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.
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).