[LLVMbugs] [Bug 12501] New: llvm uses incomplete type in a template

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 9 05:05:26 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=12501

             Bug #: 12501
           Summary: llvm uses incomplete type in a template
           Product: tools
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: llee
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: kutlak.roman at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


I tried to compile the svn revision 154314 of llvm using an older version of
clang and libcxx and I encountered the following problem:

The file include/llvm/CodeGen/PBQP/Graph.h contains the following code:

    class NodeEntry;
    typedef std::list<NodeEntry> NodeList;
    typedef NodeList::iterator NodeItr;

Compiling the code with clang fails with the error: 
error: field has incomplete type 'PBQP::Graph::NodeEntry'

According to this link
http://clang.llvm.org/compatibility.html#undep_incomplete clang does not
support the above code.

-- 
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