public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ppalka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/94066] [8/9/10 Regression] ICE (starting/ending union member lifetime) in cxx_eval_bare_aggregate, at cp/constexpr.c:3790 since r6-7592
Date: Sun, 08 Mar 2020 16:41:39 +0000	[thread overview]
Message-ID: <bug-94066-4-QiaafkzJwi@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-94066-4@http.gcc.gnu.org/bugzilla/>

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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppalka at gcc dot gnu.org

--- Comment #4 from Patrick Palka <ppalka at gcc dot gnu.org> ---
We also ICE elsewhere with the following modified testcase:

$ cat 94066.C
union U;

constexpr long foo(U *up);

union U {
  long a = foo(this);
  int y;
};

constexpr long foo(U *up) {
  up->y = 11;
  return 42;
}

extern constexpr U u = {};
$ g++ -std=c++17 94066.C
94066.C:15:26: internal compiler error: in output_constructor_regular_field, at
varasm.c:5230
   15 | extern constexpr U u = {};
      |                          ^
0x82f159 output_constructor_regular_field
        /home/patrick/code/gcc/gcc/varasm.c:5230
0x82f159 output_constructor
        /home/patrick/code/gcc/gcc/varasm.c:5536
0x1375894 output_constant
        /home/patrick/code/gcc/gcc/varasm.c:4908
0x1375894 assemble_variable_contents
        /home/patrick/code/gcc/gcc/varasm.c:2148
0x137e152 assemble_variable(tree_node*, int, int, int)
        /home/patrick/code/gcc/gcc/varasm.c:2327
0x1380c79 varpool_node::assemble_decl()
        /home/patrick/code/gcc/gcc/varpool.c:587
0xc209ec output_in_order
        /home/patrick/code/gcc/gcc/cgraphunit.c:2564
0xc209ec symbol_table::compile()
        /home/patrick/code/gcc/gcc/cgraphunit.c:2801
0xc22eec symbol_table::compile()
        /home/patrick/code/gcc/gcc/cgraphunit.c:2717
0xc22eec symbol_table::finalize_compilation_unit()
        /home/patrick/code/gcc/gcc/cgraphunit.c:2984

       reply	other threads:[~2020-03-08 16:41 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-94066-4@http.gcc.gnu.org/bugzilla/>
2020-03-08 16:41 ` ppalka at gcc dot gnu.org [this message]
2020-03-08 16:54 ` ppalka at gcc dot gnu.org
2020-03-09 14:30 ` jakub at gcc dot gnu.org
2020-03-09 15:55 ` hstong at ca dot ibm.com
2020-03-16 13:13 ` ppalka at gcc dot gnu.org
2020-03-21 13:51 ` cvs-commit at gcc dot gnu.org
2020-03-24 15:35 ` [Bug c++/94066] [8/9 " ppalka at gcc dot gnu.org
2021-05-14  9:53 ` [Bug c++/94066] [9 " jakub at gcc dot gnu.org
2021-06-01  8:16 ` rguenth at gcc dot gnu.org
2022-05-27  8:47 ` rguenth 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-94066-4-QiaafkzJwi@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).