[PATCH] [PATCH] PR9804 - __is_signed conflicts with libstdc++

Charlie Turner charlesturner7c5 at gmail.com
Tue Apr 21 12:28:19 PDT 2015


Hi Richard, thanks for taking a look.

The motivation is that I have code that looks a bit like,

------------------8<--------------------------
typedef bool BOOL;

class Foo {
    static const BOOL __is_signed;
  };

#include <map>

int main() {}
------------------>8--------------------------

and that Clang fails to compile it,

test.c:4:23: error: expected member name or ';' after declaration specifiers
    static const BOOL __is_signed;
    ~~~~~~~~~~~~~~~~~ ^

- Charlie.



More information about the cfe-commits mailing list