<div class="gmail_quote">On Mon, Aug 13, 2012 at 2:30 PM, David Robins <span dir="ltr"><<a href="mailto:llvm@davidrobins.net" target="_blank">llvm@davidrobins.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">MSVC 10 (2010) emits (with /Wall; nothing without):</div>
<br>
int.cpp(4) : warning C4099: 'Y' : type name first seen using 'struct'<br>
now seen using 'class'<br>
int.cpp(3) : see declaration of 'Y'<br></blockquote><div><br></div><div>No wonder I wasn't getting warnings, forgot to enable "-Wall" in my tests.</div><div> </div><div><br></div><div>I can see some advantages in modelling this as a new tag type specifier. Just from a quick glance at the code, there are some places in the parser where we're assigning the expected name type specifier (struct / class / enum) and with an attribute these cases might be ignored. With a new TST value, this will trigger compiler warnings (and hopefully it will get fixed :).</div>
<div><br></div><div><br></div><div><br></div><div><br></div></div><div><br></div>-- <br>Joćo Matos<br>