https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83630
Bug ID: 83630 Summary: GCC 7.2.1: ICE in replace_placeholders_r, at cp/tree.c:2796 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jeanmichael.celerier at gmail dot com Target Milestone: --- The following simple code ICEs GCC 7.2.1: struct dummy { }; struct dummy2 { dummy make(); }; struct test_struct { dummy2 m_1; dummy m_2{m_1.make()}; }; template<typename T> dummy foo(const T&) { dummy b; return b; } int main() { foo(test_struct{}); }