[LLVMbugs] [Bug 13103] New: Clang-3.1 fails to compile code using the Eigen library in template functions (g++ succeeds)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 13 05:57:35 PDT 2012


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

             Bug #: 13103
           Summary: Clang-3.1 fails to compile code using the Eigen
                    library in template functions (g++ succeeds)
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: bschindler at inf.ethz.ch
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8712
  --> http://llvm.org/bugs/attachment.cgi?id=8712
Zip of the testcase. Compile with clang++ clang-bug/test.cpp

I have tried very hard to provide a minimal testcase, but Eigen's template
magic is quite deep and I failed. I included a sort-of minimal copy of the
Eigen library I used to reproduce this problem. I set version to unspecified as
I could not select 3.1 as the version. 
I'm inclined to set the Severity to Blocker, but I'm now being defensive here

Problemdescription: I have a template function and the main function, both of
which contain the 3 lines of code using Eigen. The version in main compiles,
the one in myFunction does not (error: use of overloaded operator '=' is
ambiguous), even though the code is completely unrelated to the template
function. 

Removing the template parameter from the template function gets rid of the
compiler error.

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