http://llvm.org/bugs/show_bug.cgi?id=8272
Summary: Infinite loop in compile
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Clang seems to infinite loop on the attached test case, from the GCC test
suite:
--
ddun...@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 <class T> struct inner {};
template <class T> struct parent {
virtual void f() // { dg-error "instantiation depth" }
{ parent<inner<T> > p; };
};
template struct parent<int>;
ddun...@giles:template (master)$ time xclang -c vtable2.C
C-c C-cAbort trap
real 0m55.865s
user 0m0.001s
sys 0m0.005s
ddun...@giles:template (master)$
--
Sample shows that it is going crazy in the mangler.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs