https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122740
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[15/16 Regression] internal |[15/16 Regression] internal
|compiler error: crash at |compiler error: crash at
|cp/call.cc:8712 when union |cp/call.cc:8712 when union
|has reference member |has reference member
|initialized with literal |initialized with literal
| |since r15-6709
CC| |jakub at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
template <typename T>
struct A {
A (T) {}
};
union U {
const int &u = 10;
};
A a = A {U {}};
Started with r15-6709-g325189c675017b73015aff250da14b68247b289f.
Guess some convert_from_reference somewhere is missing, but no idea where.
Or we could change the union member types to error_mark_node when diagnosing
them.