https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95164
Bug ID: 95164 Summary: ICE regression starting with 9.3 Product: gcc Version: 10.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: boris_oncev at hotmail dot com Target Milestone: --- Reproduction code on godbolt, showing ICE on 9.3 & 10.1 but works fine on 9.2 https://godbolt.org/z/-Dr7Lc #include <vector> struct A { }; struct B { A a; }; struct C { }; struct D { C c; B b; }; struct E { D d; }; template<class T> struct F { F() { A a; A& a2 = a; std::vector<E> return_values; return_values.push_back({ {C{}, {B{a2}}} }); } };