<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }body { font-size: 10.5pt; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>Yes. I conpiled it with std=c++1z; but<span style="font-size: 10.5pt; line-height: 1.5; background-color: window;"> the bug still exists.</span></div>
<div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>312988336@qq.com</div></div></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div> </div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>From:</b> <a href="mailto:rcsaba@gmail.com">Csaba Raduly</a></div><div><b>Date:</b> 2017-03-30 15:44</div><div><b>To:</b> <a href="mailto:312988336@qq.com">312988336@qq.com</a></div><div><b>CC:</b> <a href="mailto:cfe-users@lists.llvm.org">cfe-users</a></div><div><b>Subject:</b> Re: [cfe-users] Bug report: Clang 5.0 (SVN r298093) cannot deduct class template arguments of tuple.</div></div></div><div><div>Hi,</div>
<div> </div>
<div> </div>
<div>Deducing template parameters for constructors is a C++17 feature. You</div>
<div>need to pass the -std=c++1z flag to the compiler.</div>
<div> </div>
<div>On Thu, Mar 30, 2017 at 3:48 AM, 312988336@qq.com via cfe-users</div>
<div><cfe-users@lists.llvm.org> wrote:</div>
<div>> Hi, all,</div>
<div>></div>
<div>> Below cannot be compiled with clang 5.0 (SVN r298093) on Visual Studio 2017.</div>
<div>></div>
<div>> #include <tuple></div>
<div>></div>
<div>> using namespace std;</div>
<div>></div>
<div>> int main()</div>
<div>> {</div>
<div>>     tuple t{ 1, 3.14 };</div>
<div>> }</div>
<div>></div>
<div>> The error message are as follows:</div>
<div>></div>
<div>> 1>------ Build started: Project: cpptest, Configuration: Debug x64 ------</div>
<div>> 1>main.cpp(19,8): error : no viable constructor or deduction guide for</div>
<div>> deduction of template arguments of 'tuple'</div>
<div>> 1>        tuple t{ 1, 3.14 };</div>
<div>> 1>              ^</div>
<div>> 1>C:\Program Files (x86)\Microsoft Visual</div>
<div>> Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\utility(88,8):</div>
<div>> note: candidate function template not viable: requires 0 arguments, but 2</div>
<div>> were provided</div>
<div>> 1>        class tuple;</div>
<div>> 1>              ^</div>
<div>> 1>C:\Program Files (x86)\Microsoft Visual</div>
<div>> Studio\2017\Community\VC\Tools\MSVC\14.10.25017\include\utility(88,8):</div>
<div>> note: candidate function template not viable: requires 1 argument, but 2</div>
<div>> were provided</div>
<div>> 1>1 error generated.</div>
<div>> 1>Done building project "cpptest.vcxproj" -- FAILED.</div>
<div>> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========</div>
<div>></div>
<div>> I have applied for an account for submitting bugs of clang, but no response</div>
<div>> from the administrators. So I have to send mail to this forum.</div>
<div>></div>
<div>> ________________________________</div>
<div>> 312988336@qq.com</div>
<div>></div>
<div>> _______________________________________________</div>
<div>> cfe-users mailing list</div>
<div>> cfe-users@lists.llvm.org</div>
<div>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users</div>
<div>></div>
<div> </div>
<div> </div>
<div> </div>
<div>-- </div>
<div>GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++</div>
<div>The Tao of math: The numbers you can count are not the real numbers.</div>
<div>Life is complex, with real and imaginary parts.</div>
<div>"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds</div>
<div>"People disagree with me. I just ignore them." -- Linus Torvalds</div>
<div> </div>
</div></blockquote>
</body></html>