From: Moritz Kroll Date: Tue, 5 Aug 2008 02:21:15 +0000 (+0000) Subject: cp_error041: Pointer arithmetic with pointer to an enum bitfield X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=44c00fd1f99a8777cde0b2abdabc965dbf14c2a1;p=cparser cp_error041: Pointer arithmetic with pointer to an enum bitfield [r20981] --- diff --git a/parsetest/cp_error041.c b/parsetest/cp_error041.c new file mode 100644 index 0000000..30a2831 --- /dev/null +++ b/parsetest/cp_error041.c @@ -0,0 +1,15 @@ +typedef enum { + blub +} pr_opcode_e; + +typedef struct statement_s { + pr_opcode_e op:16; +} dstatement_t; + +dstatement_t *ptr; + +int main(void) +{ + ptr++; + return 0; +}