This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/83630] New: GCC 7.2.1: ICE in replace_placeholders_r, at cp/tree.c:2796


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{});
}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]