[cfe-users] Bug report: Clang 5.0 (SVN r298093) cannot deduct class template arguments of tuple.
312988336@qq.com via cfe-users
cfe-users at lists.llvm.org
Wed Mar 29 18:48:02 PDT 2017
Hi, all,
Below cannot be compiled with clang 5.0 (SVN r298093) on Visual Studio 2017.
#include <tuple>
using namespace std;
int main()
{
tuple t{ 1, 3.14 };
}
The error message are as follows:
1>------ Build started: Project: cpptest, Configuration: Debug x64 ------
1>main.cpp(19,8): error : no viable constructor or deduction guide for deduction of template arguments of 'tuple'
1> tuple t{ 1, 3.14 };
1> ^
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\utility(88,8): note: candidate function template not viable: requires 0 arguments, but 2 were provided
1> class tuple;
1> ^
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\utility(88,8): note: candidate function template not viable: requires 1 argument, but 2 were provided
1>1 error generated.
1>Done building project "cpptest.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I have applied for an account for submitting bugs of clang, but no response from the administrators. So I have to send mail to this forum.
312988336 at qq.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20170330/9451de99/attachment.html>
More information about the cfe-users
mailing list