<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Apr 21, 2015 at 12:28 PM, Charlie Turner <span dir="ltr"><<a href="mailto:charlesturner7c5@gmail.com" target="_blank">charlesturner7c5@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Richard, thanks for taking a look.<br>
<br>
The motivation is that I have code that looks a bit like,<br>
<br>
------------------8<--------------------------<br>
typedef bool BOOL;<br>
<br>
class Foo {<br>
    static const BOOL __is_signed;<br></blockquote><div><br></div><div>__is_signed is a reserved identifier, so your code is ill-formed (no diagnostic required). The existing compatibility hack exists to work around an issue with libstdc++, which (being part of the implementation) is permitted to use names like this, not to support user code doing this sort of thing.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  };<br>
<br>
#include <map><br>
<br>
int main() {}<br>
------------------>8--------------------------<br>
<br>
and that Clang fails to compile it,<br>
<br>
test.c:4:23: error: expected member name or ';' after declaration specifiers<br>
    static const BOOL __is_signed;<br>
    ~~~~~~~~~~~~~~~~~ ^<br>
<span class="HOEnZb"><font color="#888888"><br>
- Charlie.<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</div></div></blockquote></div><br></div></div>