[Bug c++/93898] New: internal compiler error: in output_constructor_regular_field
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Feb 23 23:02:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93898
Bug ID: 93898
Summary: internal compiler error: in
output_constructor_regular_field
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mpolacek at gcc dot gnu.org
Target Milestone: ---
struct empty { };
struct foo
{
[[no_unique_address]]
empty x;
constexpr
foo() : x{}
{ }
};
struct bar : foo
{
using foo::foo;
int i;
constexpr bar() : i{1} {}
};
constexpr bar a{};
$ ./cc1plus -quiet x.C
x.C:20:18: internal compiler error: in output_constructor_regular_field, at
varasm.c:5230
20 | constexpr bar a{};
| ^
0x1a28da5 output_constructor_regular_field
/home/mpolacek/src/gcc/gcc/varasm.c:5230
0x1a29cbe output_constructor
/home/mpolacek/src/gcc/gcc/varasm.c:5536
0x1a28617 output_constant
/home/mpolacek/src/gcc/gcc/varasm.c:5065
0x1a1e192 assemble_variable_contents
/home/mpolacek/src/gcc/gcc/varasm.c:2148
0x1a1ec30 assemble_variable(tree_node*, int, int, int)
/home/mpolacek/src/gcc/gcc/varasm.c:2327
0x1a3967c varpool_node::assemble_decl()
/home/mpolacek/src/gcc/gcc/varpool.c:587
0xe7a4fc output_in_order
/home/mpolacek/src/gcc/gcc/cgraphunit.c:2564
0xe7ab82 symbol_table::compile()
/home/mpolacek/src/gcc/gcc/cgraphunit.c:2801
0xe7afd0 symbol_table::finalize_compilation_unit()
/home/mpolacek/src/gcc/gcc/cgraphunit.c:2984
Started with r9-5710-g7e574f68fa82e7c5f879fd468291ec8b5ebecc83
More information about the Gcc-bugs
mailing list