[LLVMbugs] [Bug 8272] New: Infinite loop in compile

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Oct 1 09:19:11 PDT 2010


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: unassignedclangbugs at nondot.org
        ReportedBy: daniel at zuster.org
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Clang seems to infinite loop on the attached test case, from the GCC test
suite:
--
ddunbar at 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: rullo.pat at tiscalinet.it
//       Nathanael Nerode <neroden at gcc.gnu.org>
//       Wolfgang Bangerth <bangerth at dealii.org>

// 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>;
ddunbar at giles:template (master)$ time xclang -c vtable2.C 
  C-c C-cAbort trap

real    0m55.865s
user    0m0.001s
sys    0m0.005s
ddunbar at 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.



More information about the llvm-bugs mailing list