mycoboco / beluga

a standard C compiler (with an integrated preprocessor)
http://code.woong.org/beluga
Other
65 stars 8 forks source link

enhance diagnostics for invalid initializers for bit-fields #95

Closed mycoboco closed 7 years ago

mycoboco commented 7 years ago
void f(void)
{
    struct {
        int x: 10;
    } x = { "abc" };
}
foo.c:5:13: ERROR - invalid initializer; `array [4] of char' given for `long int'
      } x = { "abc" };
              ^~~~~