https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70671

            Bug ID: 70671
           Summary: Wrong column number shown for "error: cannot take
                    address of bit-field"
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ch3root at openwall dot com
  Target Milestone: ---

When compiling this program:

int main()
{
  struct { int x:2; } s;
  12345; &s.x;
}

I get the following error message:

$ gcc example.c
example.c: In function ‘main’:
example.c:4:3: error: cannot take address of bit-field ‘x’
   12345; &s.x;
   ^~~~~

The column number is wrong.

Reply via email to