public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/102434] New: [11/12 Regression] ICE in output_constructor_regular_field, at varasm.c:5514
@ 2021-09-21 19:21 gscfq@t-online.de
2021-09-21 23:49 ` [Bug c++/102434] " pinskia at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: gscfq@t-online.de @ 2021-09-21 19:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102434
Bug ID: 102434
Summary: [11/12 Regression] ICE in
output_constructor_regular_field, at varasm.c:5514
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gscfq@t-online.de
Target Milestone: ---
Started between 20201018 and 20201108 :
(derived from initlist-deduce3.C)
$ cat z1.cc
using size_t = decltype(sizeof 0);
namespace std {
template<typename T> union initializer_list {
const T *ptr;
size_t n;
};
}
template<typename T>
void Task() {}
auto b = { &Task<int> };
$ g++-12-20210919 -c z1.cc
z1.cc:10:24: internal compiler error: in output_constructor_regular_field, at
varasm.c:5514
10 | auto b = { &Task<int> };
| ^
0x1025b84 output_constructor_regular_field
../../gcc/varasm.c:5514
0x1025b84 output_constructor
../../gcc/varasm.c:5826
0x1025ecf output_constant
../../gcc/varasm.c:5172
0x1025ecf assemble_variable_contents
../../gcc/varasm.c:2235
0x102dcad assemble_variable(tree_node*, int, int, int)
../../gcc/varasm.c:2414
0x102ffaa varpool_node::assemble_decl()
../../gcc/varpool.c:595
0x96ac1f output_in_order
../../gcc/cgraphunit.c:2135
0x96ac1f symbol_table::compile()
../../gcc/cgraphunit.c:2353
0x96d54f symbol_table::compile()
../../gcc/cgraphunit.c:2540
0x96d54f symbol_table::finalize_compilation_unit()
../../gcc/cgraphunit.c:2537
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/102434] [11/12 Regression] ICE in output_constructor_regular_field, at varasm.c:5514
2021-09-21 19:21 [Bug c++/102434] New: [11/12 Regression] ICE in output_constructor_regular_field, at varasm.c:5514 gscfq@t-online.de
@ 2021-09-21 23:49 ` pinskia at gcc dot gnu.org
2021-09-21 23:50 ` pinskia at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-21 23:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102434
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-09-21
Status|UNCONFIRMED |NEW
Keywords| |ice-on-invalid-code
Ever confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
Note clang also ICEs :).
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/102434] [11/12 Regression] ICE in output_constructor_regular_field, at varasm.c:5514
2021-09-21 19:21 [Bug c++/102434] New: [11/12 Regression] ICE in output_constructor_regular_field, at varasm.c:5514 gscfq@t-online.de
2021-09-21 23:49 ` [Bug c++/102434] " pinskia at gcc dot gnu.org
@ 2021-09-21 23:50 ` pinskia at gcc dot gnu.org
2021-09-27 13:24 ` [Bug c++/102434] [11/12 Regression] ICE in output_constructor_regular_field, at varasm.c:5514 since r11-4547-g6fb7e3c29188ab7c marxin at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-21 23:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102434
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |11.3
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/102434] [11/12 Regression] ICE in output_constructor_regular_field, at varasm.c:5514 since r11-4547-g6fb7e3c29188ab7c
2021-09-21 19:21 [Bug c++/102434] New: [11/12 Regression] ICE in output_constructor_regular_field, at varasm.c:5514 gscfq@t-online.de
2021-09-21 23:49 ` [Bug c++/102434] " pinskia at gcc dot gnu.org
2021-09-21 23:50 ` pinskia at gcc dot gnu.org
@ 2021-09-27 13:24 ` marxin at gcc dot gnu.org
2021-09-27 13:33 ` mpolacek at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-09-27 13:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102434
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marxin at gcc dot gnu.org,
| |mpolacek at gcc dot gnu.org
Summary|[11/12 Regression] ICE in |[11/12 Regression] ICE in
|output_constructor_regular_ |output_constructor_regular_
|field, at varasm.c:5514 |field, at varasm.c:5514
| |since
| |r11-4547-g6fb7e3c29188ab7c
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r11-4547-g6fb7e3c29188ab7c.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/102434] [11/12 Regression] ICE in output_constructor_regular_field, at varasm.c:5514 since r11-4547-g6fb7e3c29188ab7c
2021-09-21 19:21 [Bug c++/102434] New: [11/12 Regression] ICE in output_constructor_regular_field, at varasm.c:5514 gscfq@t-online.de
` (2 preceding siblings ...)
2021-09-27 13:24 ` [Bug c++/102434] [11/12 Regression] ICE in output_constructor_regular_field, at varasm.c:5514 since r11-4547-g6fb7e3c29188ab7c marxin at gcc dot gnu.org
@ 2021-09-27 13:33 ` mpolacek at gcc dot gnu.org
2022-01-20 9:54 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2021-09-27 13:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102434
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/102434] [11/12 Regression] ICE in output_constructor_regular_field, at varasm.c:5514 since r11-4547-g6fb7e3c29188ab7c
2021-09-21 19:21 [Bug c++/102434] New: [11/12 Regression] ICE in output_constructor_regular_field, at varasm.c:5514 gscfq@t-online.de
` (3 preceding siblings ...)
2021-09-27 13:33 ` mpolacek at gcc dot gnu.org
@ 2022-01-20 9:54 ` rguenth at gcc dot gnu.org
2022-01-31 20:35 ` cvs-commit at gcc dot gnu.org
2022-01-31 20:38 ` mpolacek at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-01-20 9:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102434
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/102434] [11/12 Regression] ICE in output_constructor_regular_field, at varasm.c:5514 since r11-4547-g6fb7e3c29188ab7c
2021-09-21 19:21 [Bug c++/102434] New: [11/12 Regression] ICE in output_constructor_regular_field, at varasm.c:5514 gscfq@t-online.de
` (4 preceding siblings ...)
2022-01-20 9:54 ` rguenth at gcc dot gnu.org
@ 2022-01-31 20:35 ` cvs-commit at gcc dot gnu.org
2022-01-31 20:38 ` mpolacek at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-01-31 20:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102434
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Marek Polacek <mpolacek@gcc.gnu.org>:
https://gcc.gnu.org/g:b1a8b92f8f78536a00012e2e53a0d12ddbe6836d
commit r12-6951-gb1a8b92f8f78536a00012e2e53a0d12ddbe6836d
Author: Marek Polacek <polacek@redhat.com>
Date: Fri Jan 28 20:01:06 2022 -0500
c++: Reject union std::initializer_list [PR102434]
Weird things are going to happen if you define your std::initializer_list
as a union. In this case, we crash in output_constructor_regular_field.
Let's not allow such a definition in the first place.
PR c++/102434
gcc/cp/ChangeLog:
* class.cc (finish_struct): Don't allow union initializer_list.
gcc/testsuite/ChangeLog:
* g++.dg/cpp0x/initlist128.C: New test.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/102434] [11/12 Regression] ICE in output_constructor_regular_field, at varasm.c:5514 since r11-4547-g6fb7e3c29188ab7c
2021-09-21 19:21 [Bug c++/102434] New: [11/12 Regression] ICE in output_constructor_regular_field, at varasm.c:5514 gscfq@t-online.de
` (5 preceding siblings ...)
2022-01-31 20:35 ` cvs-commit at gcc dot gnu.org
@ 2022-01-31 20:38 ` mpolacek at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2022-01-31 20:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102434
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-01-31 20:38 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-21 19:21 [Bug c++/102434] New: [11/12 Regression] ICE in output_constructor_regular_field, at varasm.c:5514 gscfq@t-online.de
2021-09-21 23:49 ` [Bug c++/102434] " pinskia at gcc dot gnu.org
2021-09-21 23:50 ` pinskia at gcc dot gnu.org
2021-09-27 13:24 ` [Bug c++/102434] [11/12 Regression] ICE in output_constructor_regular_field, at varasm.c:5514 since r11-4547-g6fb7e3c29188ab7c marxin at gcc dot gnu.org
2021-09-27 13:33 ` mpolacek at gcc dot gnu.org
2022-01-20 9:54 ` rguenth at gcc dot gnu.org
2022-01-31 20:35 ` cvs-commit at gcc dot gnu.org
2022-01-31 20:38 ` mpolacek at gcc dot gnu.org
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).