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: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs