http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58430
Bug ID: 58430
Summary: GCC hangs with 100% cpu core utilization during
template compilation
Product: gcc
Version: 4.7.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
The next code leads hanging up of the compiler:
template<unsigned I1, unsigned I2>
void test()
{
test<I1 + ((I2 - I1) / 2) + 1, I2>();
test<I1, I1 + ((I2 - I1) / 2) >();
};
int main()
{
test<0, 0>();
return 0;
}