public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/96863] New: [11 Regression] ICE: in output_constructor_regular_field, at varasm.c:5223
@ 2020-08-31 9:57 gcc-bugs at marehr dot dialup.fu-berlin.de
2020-08-31 13:05 ` [Bug c++/96863] " rguenth at gcc dot gnu.org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: gcc-bugs at marehr dot dialup.fu-berlin.de @ 2020-08-31 9:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96863
Bug ID: 96863
Summary: [11 Regression] ICE: in
output_constructor_regular_field, at varasm.c:5223
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gcc-bugs at marehr dot dialup.fu-berlin.de
Target Milestone: ---
Hi gcc-team,
the following code ices:
```c++
#include <tuple>
namespace seqan3 {
template <typename, typename = void> struct pipeable_config_element;
template <typename derived_t>
struct pipeable_config_element<derived_t, void> {};
template <typename, typename value_t> struct pipeable_config_element {
value_t value;
};
struct gap_scheme {
int gap = 1;
};
template <typename... configs_t>
struct configuration : std::tuple<configs_t...> {
template <typename derived_t, typename value_t>
constexpr configuration(pipeable_config_element<derived_t, value_t> const) {}
template <typename...> constexpr configuration(std::tuple<> const) {}
template <typename config_element_t>
constexpr auto push_back(config_element_t) const {
return configuration<configs_t..., config_element_t>{std::tuple{}};
}
};
template <typename derived_t, typename value_t>
configuration(pipeable_config_element<derived_t, value_t> const)
-> configuration<derived_t>;
} // namespace seqan3
namespace seqan3::align_cfg {
template <typename gap_scheme_t>
struct gap : pipeable_config_element<gap<gap_scheme_t>, gap_scheme_t> {
gap() = default;
constexpr gap(gap_scheme_t const)
: pipeable_config_element<gap, gap_scheme_t>() {}
};
} // namespace seqan3::align_cfg
namespace seqan3::detail {
struct method_local_tag : pipeable_config_element<method_local_tag> {};
} // namespace seqan3::detail
namespace seqan3::align_cfg {
seqan3::detail::method_local_tag method_local;
template <typename scoring_scheme_t>
struct scoring_scheme : pipeable_config_element<int, void> {
scoring_scheme() = default;
constexpr scoring_scheme(scoring_scheme_t) {};
};
struct aminoacid_scoring_scheme {};
template <typename config_t> struct alignment_fixture { config_t config; };
template <typename config_t>
alignment_fixture(config_t) -> alignment_fixture<config_t>;
inline constexpr auto align_config =
seqan3::configuration{seqan3::align_cfg::method_local}.push_back(
seqan3::align_cfg::gap{seqan3::gap_scheme{}});
static auto aa27_02 = [] {
return alignment_fixture{align_config.push_back(
seqan3::align_cfg::scoring_scheme{aminoacid_scoring_scheme{}})};
}();
} // namespace seqan3::align_cfg
```
https://godbolt.org/z/M4Mh1f
with
> g++-git -std=c++2a
error:
```
ice.cpp:55:1: internal compiler error: in output_constructor_regular_field, at
varasm.c:5223
55 | } // namespace seqan3::align_cfg
| ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.
```
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/96863] [11 Regression] ICE: in output_constructor_regular_field, at varasm.c:5223
2020-08-31 9:57 [Bug c++/96863] New: [11 Regression] ICE: in output_constructor_regular_field, at varasm.c:5223 gcc-bugs at marehr dot dialup.fu-berlin.de
@ 2020-08-31 13:05 ` rguenth at gcc dot gnu.org
2020-08-31 21:51 ` mpolacek at gcc dot gnu.org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-08-31 13:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96863
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Target Milestone|--- |11.0
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/96863] [11 Regression] ICE: in output_constructor_regular_field, at varasm.c:5223
2020-08-31 9:57 [Bug c++/96863] New: [11 Regression] ICE: in output_constructor_regular_field, at varasm.c:5223 gcc-bugs at marehr dot dialup.fu-berlin.de
2020-08-31 13:05 ` [Bug c++/96863] " rguenth at gcc dot gnu.org
@ 2020-08-31 21:51 ` mpolacek at gcc dot gnu.org
2020-09-01 1:03 ` mpolacek at gcc dot gnu.org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-08-31 21:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96863
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Keywords| |needs-bisection
Status|UNCONFIRMED |NEW
CC| |mpolacek at gcc dot gnu.org
Last reconfirmed| |2020-08-31
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed. Not a dup of 96282 because that was fixed already. Can't bisect
right now.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/96863] [11 Regression] ICE: in output_constructor_regular_field, at varasm.c:5223
2020-08-31 9:57 [Bug c++/96863] New: [11 Regression] ICE: in output_constructor_regular_field, at varasm.c:5223 gcc-bugs at marehr dot dialup.fu-berlin.de
2020-08-31 13:05 ` [Bug c++/96863] " rguenth at gcc dot gnu.org
2020-08-31 21:51 ` mpolacek at gcc dot gnu.org
@ 2020-09-01 1:03 ` mpolacek at gcc dot gnu.org
2020-09-01 1:07 ` [Bug c++/96863] [9/10/11 " mpolacek at gcc dot gnu.org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-09-01 1:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96863
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|needs-bisection |
CC| |jason at gcc dot gnu.org
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Started with r268368.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/96863] [9/10/11 Regression] ICE: in output_constructor_regular_field, at varasm.c:5223
2020-08-31 9:57 [Bug c++/96863] New: [11 Regression] ICE: in output_constructor_regular_field, at varasm.c:5223 gcc-bugs at marehr dot dialup.fu-berlin.de
` (2 preceding siblings ...)
2020-09-01 1:03 ` mpolacek at gcc dot gnu.org
@ 2020-09-01 1:07 ` mpolacek at gcc dot gnu.org
2020-09-20 19:14 ` mpolacek at gcc dot gnu.org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-09-01 1:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96863
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|11.0 |9.4
Summary|[11 Regression] ICE: in |[9/10/11 Regression] ICE:
|output_constructor_regular_ |in
|field, at varasm.c:5223 |output_constructor_regular_
| |field, at varasm.c:5223
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/96863] [9/10/11 Regression] ICE: in output_constructor_regular_field, at varasm.c:5223
2020-08-31 9:57 [Bug c++/96863] New: [11 Regression] ICE: in output_constructor_regular_field, at varasm.c:5223 gcc-bugs at marehr dot dialup.fu-berlin.de
` (3 preceding siblings ...)
2020-09-01 1:07 ` [Bug c++/96863] [9/10/11 " mpolacek at gcc dot gnu.org
@ 2020-09-20 19:14 ` mpolacek at gcc dot gnu.org
2020-09-20 19:14 ` mpolacek at gcc dot gnu.org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-09-20 19:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96863
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |slyfox at gcc dot gnu.org
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
*** Bug 97126 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/96863] [9/10/11 Regression] ICE: in output_constructor_regular_field, at varasm.c:5223
2020-08-31 9:57 [Bug c++/96863] New: [11 Regression] ICE: in output_constructor_regular_field, at varasm.c:5223 gcc-bugs at marehr dot dialup.fu-berlin.de
` (4 preceding siblings ...)
2020-09-20 19:14 ` mpolacek at gcc dot gnu.org
@ 2020-09-20 19:14 ` mpolacek at gcc dot gnu.org
2020-10-12 12:27 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-09-20 19:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96863
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
struct b {
constexpr b() : c() {}
[[no_unique_address]] struct a {} c;
};
struct d {
constexpr d() : c() {}
int c;
};
struct e : b, d {};
class f {
float g = 1.0f;
e h;
} i;
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/96863] [9/10/11 Regression] ICE: in output_constructor_regular_field, at varasm.c:5223
2020-08-31 9:57 [Bug c++/96863] New: [11 Regression] ICE: in output_constructor_regular_field, at varasm.c:5223 gcc-bugs at marehr dot dialup.fu-berlin.de
` (5 preceding siblings ...)
2020-09-20 19:14 ` mpolacek at gcc dot gnu.org
@ 2020-10-12 12:27 ` rguenth at gcc dot gnu.org
2020-10-26 19:23 ` slyfox at gcc dot gnu.org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-10-12 12:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96863
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/96863] [9/10/11 Regression] ICE: in output_constructor_regular_field, at varasm.c:5223
2020-08-31 9:57 [Bug c++/96863] New: [11 Regression] ICE: in output_constructor_regular_field, at varasm.c:5223 gcc-bugs at marehr dot dialup.fu-berlin.de
` (6 preceding siblings ...)
2020-10-12 12:27 ` rguenth at gcc dot gnu.org
@ 2020-10-26 19:23 ` slyfox at gcc dot gnu.org
2020-11-27 18:57 ` slyfox at gcc dot gnu.org
2021-01-21 21:24 ` mpolacek at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: slyfox at gcc dot gnu.org @ 2020-10-26 19:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96863
--- Comment #5 from Sergei Trofimovich <slyfox at gcc dot gnu.org> ---
gcc's backtrace:
Breakpoint 2, internal_error (gmsgid=0x2df9a67 "in %s, at %s:%d") at
../../gcc/gcc/diagnostic.c:1752
1752 {
(gdb) bt
#0 internal_error (gmsgid=0x2df9a67 "in %s, at %s:%d") at
../../gcc/gcc/diagnostic.c:1752
#1 0x00000000023f2fa5 in fancy_abort (file=0x2679c8b "../../gcc/gcc/varasm.c",
line=5402, function=0x267be88 "output_constructor_regular_field") at
../../gcc/gcc/diagnostic.c:1824
#2 0x0000000001668f0e in output_constructor_regular_field
(local=0x7fffffffce10) at ../../gcc/gcc/varasm.c:5402
#3 0x0000000001669e37 in output_constructor (exp=0x7ffff7796a50, size=4,
align=32, reverse=false, outer=0x0) at ../../gcc/gcc/varasm.c:5708
#4 0x0000000001668522 in output_constant (exp=0x7ffff7796a50, size=4,
align=32, reverse=false, merge_strings=false) at ../../gcc/gcc/varasm.c:5217
#5 0x0000000001669255 in output_constructor_regular_field
(local=0x7fffffffd030) at ../../gcc/gcc/varasm.c:5441
#6 0x0000000001669e37 in output_constructor (exp=0x7ffff7796a38, size=8,
align=64, reverse=false, outer=0x0) at ../../gcc/gcc/varasm.c:5708
#7 0x0000000001668522 in output_constant (exp=0x7ffff7796a38, size=8,
align=64, reverse=false, merge_strings=false) at ../../gcc/gcc/varasm.c:5217
#8 0x000000000165cf94 in assemble_variable_contents (decl=0x7ffff7ffbf30,
name=0x7ffff7729268 "i", dont_output_data=false, merge_strings=false) at
../../gcc/gcc/varasm.c:2123
#9 0x000000000165da1e in assemble_variable (decl=0x7ffff7ffbf30, top_level=0,
at_end=1, dont_output_data=0) at ../../gcc/gcc/varasm.c:2302
#10 0x000000000167b7b1 in varpool_node::assemble_decl (this=0x7ffff77af880) at
../../gcc/gcc/varpool.c:587
#11 0x00000000009d99c5 in cgraph_order_sort::process (this=0x3494738) at
../../gcc/gcc/cgraphunit.c:2073
#12 0x00000000009d9cab in output_in_order () at ../../gcc/gcc/cgraphunit.c:2138
#13 0x00000000009da2fb in symbol_table::compile (this=0x7ffff7645100) at
../../gcc/gcc/cgraphunit.c:2356
#14 0x00000000009da706 in symbol_table::finalize_compilation_unit
(this=0x7ffff7645100) at ../../gcc/gcc/cgraphunit.c:2540
#15 0x000000000112b953 in compile_file () at ../../gcc/gcc/toplev.c:485
#16 0x000000000112ec8d in do_compile () at ../../gcc/gcc/toplev.c:2321
#17 0x000000000112efa6 in toplev::main (this=0x7fffffffd466, argc=22,
argv=0x7fffffffd578) at ../../gcc/gcc/toplev.c:2460
#18 0x00000000023b8f9d in main (argc=22, argv=0x7fffffffd578) at
../../gcc/gcc/main.c:39
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/96863] [9/10/11 Regression] ICE: in output_constructor_regular_field, at varasm.c:5223
2020-08-31 9:57 [Bug c++/96863] New: [11 Regression] ICE: in output_constructor_regular_field, at varasm.c:5223 gcc-bugs at marehr dot dialup.fu-berlin.de
` (7 preceding siblings ...)
2020-10-26 19:23 ` slyfox at gcc dot gnu.org
@ 2020-11-27 18:57 ` slyfox at gcc dot gnu.org
2021-01-21 21:24 ` mpolacek at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: slyfox at gcc dot gnu.org @ 2020-11-27 18:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96863
--- Comment #6 from Sergei Trofimovich <slyfox at gcc dot gnu.org> ---
In we see ICEs related to '[[no_unique_address]]' on chromium source code:
https://bugs.gentoo.org/757150 (a variant of #c4 example).
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/96863] [9/10/11 Regression] ICE: in output_constructor_regular_field, at varasm.c:5223
2020-08-31 9:57 [Bug c++/96863] New: [11 Regression] ICE: in output_constructor_regular_field, at varasm.c:5223 gcc-bugs at marehr dot dialup.fu-berlin.de
` (8 preceding siblings ...)
2020-11-27 18:57 ` slyfox at gcc dot gnu.org
@ 2021-01-21 21:24 ` mpolacek at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2021-01-21 21:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96863
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Looks like a dup of bug 98463 which has more information.
*** This bug has been marked as a duplicate of bug 98463 ***
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2021-01-21 21:24 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-31 9:57 [Bug c++/96863] New: [11 Regression] ICE: in output_constructor_regular_field, at varasm.c:5223 gcc-bugs at marehr dot dialup.fu-berlin.de
2020-08-31 13:05 ` [Bug c++/96863] " rguenth at gcc dot gnu.org
2020-08-31 21:51 ` mpolacek at gcc dot gnu.org
2020-09-01 1:03 ` mpolacek at gcc dot gnu.org
2020-09-01 1:07 ` [Bug c++/96863] [9/10/11 " mpolacek at gcc dot gnu.org
2020-09-20 19:14 ` mpolacek at gcc dot gnu.org
2020-09-20 19:14 ` mpolacek at gcc dot gnu.org
2020-10-12 12:27 ` rguenth at gcc dot gnu.org
2020-10-26 19:23 ` slyfox at gcc dot gnu.org
2020-11-27 18:57 ` slyfox at gcc dot gnu.org
2021-01-21 21:24 ` 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).