<div dir="ltr"><a class="GWVZpf fW" id="IloFPc-1" href="mailto:lldb-dev@cs.uiuc.edu" tabindex="-1">+lldb-dev@cs.uiuc.edu</a> since this is of general interest.<div><br></div><div>A little background: template aliases are a new C++11 feature. If you aren't familiar with it, then the simple TL;DR version of it is that it's like a template typedef. The syntax for using one looks like this:</div><div><br></div><div>template<class T></div><div>using Foo = std::list<T> // Foo<T> is the same as std::list<T> now.</div><div><br></div><div>Up until last weekend, LLVM's minimum toolchain requirement was MSVC 2012, which did not support template aliases at all, so they were banned. Last weekend we upgraded the minimum required version to MSVC 2013, which we thought would allow template aliases to be used. Unfortunately, this is not the case. A base install of MSVC 2013 with no updaets will still not compile template aliases. I believe we're actually requiring MSVC 2013 Update 4 as the baseline, but sadly this doesn't fix the problem. A fully updated MSVC 2013 will compile them, but generate incorrect code. This is more sinister, since it means you can use them, but the code won't work.</div><div><br></div><div>As a result, template aliases are still banned until we upgrade the minimum required version to 2015, which will still be a while as it's not officially out yet. Please keep this in mind and try not to use them when writing new code. Thanks!</div><div><br></div><div><br><br><div class="gmail_quote">On Tue Feb 17 2015 at 3:21:03 PM Vince Harron <<a href="mailto:vharron@google.com">vharron@google.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Tamas,<div><br></div><div>zturner@ informed me that MSVC 2013 doesn't generate correct code for template alases. Can you remove your use on </div><div><br></div><div>"<span style="color:rgb(38,38,38);font-size:13px;line-height:16px">GDBRemoteCommunicationServerCommon.h, lines 182 and 183"</span></div><div><font color="#262626"><span style="line-height:16px"><br></span></font></div><div><font color="#262626"><span style="line-height:16px">Thanks,</span></font></div><div><font color="#262626"><span style="line-height:16px"><br></span></font></div><div><font color="#262626"><span style="line-height:16px">Vince</span></font></div></div><div dir="ltr"><div><font color="#262626"><span style="line-height:16px"><br clear="all"></span></font><div><br></div>-- <br><div><div dir="ltr"><br><table cellspacing="0" cellpadding="0" style="font-family:'Times New Roman'"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small"><td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Vince Harron |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Technical Lead Manager |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:vharron@google.com" target="_blank">vharron@google.com</a> |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"> 858-442-0868</td></tr></tbody></table><br></div></div>
</div></div></blockquote></div></div></div>