[LLVMbugs] [Bug 12737] New: Compile time error inheriting member function template

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 4 06:04:52 PDT 2012


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

             Bug #: 12737
           Summary: Compile time error inheriting member function template
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: fpelliccioni at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8492
  --> http://llvm.org/bugs/attachment.cgi?id=8492
source code

See attached source file.

g++ 4.6.3 compiles OK


$ clang++ -std=c++11 clang_error.cpp 
clang_error.cpp:55:18: error: no matching member function for call to 'get'
        std::cout << ov.get<double>() << std::endl;
                     ~~~^~~~~~~~~~~
clang_error.cpp:43:2: note: candidate template ignored: substitution failure
[with T2 = double]
        get()
        ^
1 error generated.



------------------------------------------------------------
$ clang++ --version
clang version 3.1 (trunk 155038)
Target: i386-pc-linux-gnu
Thread model: posix

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