public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "gscfq@t-online.de" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/98332] New: [10/11 Regression] ICE in unshare_constructor, at cp/constexpr.c:1527 Date: Wed, 16 Dec 2020 18:39:16 +0000 [thread overview] Message-ID: <bug-98332-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98332 Bug ID: 98332 Summary: [10/11 Regression] ICE in unshare_constructor, at cp/constexpr.c:1527 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Changed between 20190609 and 20190616 : $ cat z1.cc struct S { int a = 2147483647 + 1; }; struct { S b[2][1][1][1]; } c; $ cat z2.cc #include <limits.h> struct S { int a = INT_MAX + 1; }; struct { S b[2][1][1][1]; } c; $ g++-11-20201213 -c z1.cc z1.cc:1:31: warning: integer overflow in expression of type 'int' results in '-2147483648' [-Woverflow] 1 | struct S { int a = 2147483647 + 1; }; | ~~~~~~~~~~~^~~ z1.cc:2:29: in 'constexpr' expansion of 'c.<unnamed struct>::<constructor>()' z1.cc:2:29: internal compiler error: Segmentation fault 2 | struct { S b[2][1][1][1]; } c; | ^ 0xc8f5ff crash_signal ../../gcc/toplev.c:327 0x67c3e8 unshare_constructor(tree_node*) ../../gcc/cp/constexpr.c:1527 0x68a51a cxx_eval_vec_init_1 ../../gcc/cp/constexpr.c:4575 0x681d76 cxx_eval_vec_init ../../gcc/cp/constexpr.c:4599 0x681d76 cxx_eval_constant_expression ../../gcc/cp/constexpr.c:6584 0x6883c8 cxx_eval_store_expression ../../gcc/cp/constexpr.c:5406 0x6811ca cxx_eval_constant_expression ../../gcc/cp/constexpr.c:6226 0x680737 cxx_eval_constant_expression ../../gcc/cp/constexpr.c:6609 0x680b8c cxx_eval_constant_expression ../../gcc/cp/constexpr.c:6284 0x680cde cxx_eval_constant_expression ../../gcc/cp/constexpr.c:6295 0x680d70 cxx_eval_constant_expression ../../gcc/cp/constexpr.c:6788 0x67f58f cxx_eval_call_expression ../../gcc/cp/constexpr.c:2701 0x680f5a cxx_eval_constant_expression ../../gcc/cp/constexpr.c:6117 0x683eab cxx_eval_outermost_constant_expr ../../gcc/cp/constexpr.c:7126 0x686e7f maybe_constant_init_1 ../../gcc/cp/constexpr.c:7578 0x6ea7b6 expand_default_init ../../gcc/cp/init.c:1998 0x6ea7b6 expand_aggr_init_1 ../../gcc/cp/init.c:2101 0x6ec475 build_aggr_init(tree_node*, tree_node*, int, int) ../../gcc/cp/init.c:1835 0x6cb20d build_aggr_init_full_exprs ../../gcc/cp/decl.c:6803 0x6cb20d check_initializer ../../gcc/cp/decl.c:6964
next reply other threads:[~2020-12-16 18:39 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-12-16 18:39 gscfq@t-online.de [this message] 2020-12-17 11:18 ` [Bug c++/98332] [10/11 Regression] ICE in unshare_constructor, at cp/constexpr.c:1527 since r6-7607-g52228180f1e50cbb marxin at gcc dot gnu.org 2020-12-22 21:17 ` jason at gcc dot gnu.org 2020-12-23 21:40 ` cvs-commit at gcc dot gnu.org 2020-12-23 22:11 ` cvs-commit at gcc dot gnu.org 2020-12-29 3:25 ` asolokha at gmx dot com 2021-01-04 7:07 ` marxin at gcc dot gnu.org 2021-09-11 6:40 ` pinskia 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-98332-4@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: linkBe 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).