This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/83630] New: GCC 7.2.1: ICE in replace_placeholders_r, at cp/tree.c:2796
- From: "jeanmichael.celerier at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 30 Dec 2017 17:15:54 +0000
- Subject: [Bug c++/83630] New: GCC 7.2.1: ICE in replace_placeholders_r, at cp/tree.c:2796
- Auto-submitted: auto-generated
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{});
}