Closed
Description
Bugzilla Link | 8272 |
Resolution | FIXED |
Resolved on | Dec 21, 2010 01:15 |
Version | unspecified |
OS | All |
Reporter | LLVM Bugzilla Contributor |
CC | @DougGregor,@efriedma-quic,@ismail |
Extended Description
Clang seems to infinite loop on the attached test case, from the GCC test suite:
ddunbar@giles:template (master)$ cat vtable2.C
// Use a small template instantiation depth to speed up testing
// { dg-options "-ftemplate-depth-5" }
// { dg-do compile }
// Origin: [email protected]
// Nathanael Nerode [email protected]
// Wolfgang Bangerth [email protected]
// PR c++/6749: Infinite loop generating vtable.
template struct inner {};
template struct parent {
virtual void f() // { dg-error "instantiation depth" }
{ parent<inner > p; };
};
template struct parent;
ddunbar@giles:template (master)$ time xclang -c vtable2.C
C-c C-cAbort trap
real 0m55.865s
user 0m0.001s
sys 0m0.005s
ddunbar@giles:template (master)$
Sample shows that it is going crazy in the mangler.