[cfe-dev] Incorrect(?) compile time error - inheriting member function template (using base::f; )

Fernando Pelliccioni fpelliccioni at gmail.com
Fri May 4 06:17:00 PDT 2012

Is this compile time error correct?

g++ 4.6.3 compiles fine

Here is the code:

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

$ 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]
1 error generated.

Thanks and Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120504/e9cf56e6/attachment.html>

More information about the cfe-dev mailing list