<div dir="ltr"><div>LGTM</div><div><br></div><div>On Wed, Mar 26, 2014 at 9:28 AM, Nico Rieck <span dir="ltr"><<a href="mailto:nico.rieck@gmail.com" target="_blank">nico.rieck@gmail.com</a>></span> wrote:<br></div><div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Both attributes require external linkage. This is not fully compatible<br>
with MSVC because MSVC allows exporting/importing from anonymous<br>namespaces. But until we can mangle this properly this should not be<br>allowed.<br></blockquote><div> <br></div></div>Yeah, I don't think we should support exporting/importing from anonymous namespaces.  They have external language linkage, but really they aren't externally visible and can't be imported/exported.  =P<div>
<br></div><div>....</div><div><div>+</div><div>+#if __has_feature(cxx_auto_type)</div><div><br></div><div>Any reason for this #if?  The test only uses c++11 and c++1y.</div><div><br></div><div>+__declspec(dllexport) auto InternalAutoTypeGlobal = Internal(); // expected-error{{'InternalAutoTypeGlobal' must have external linkage when declared 'dllexport'}}</div>
<div>+__declspec(dllexport) auto ExternalAutoTypeGlobal = External();</div><div>+#endif</div></div><div><br></div><div class="gmail_extra"><br><br></div></div>