[PATCH] Accept -> in offsetof member-designator (the same as `[0].', PR c/32084)

Ian Lance Taylor iant@google.com
Fri Jan 30 05:33:00 GMT 2009


Jakub Jelinek <jakub@redhat.com> writes:

> 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
>
> 	PR c/32084
> 	* c-parser.c (c_parser_postfix_expression): Allow `->' in
> 	offsetof member-designator, handle it as `[0].'.
>
> 	* parser.c (cp_parser_builtin_offsetof): Allow `->' in
> 	offsetof member-designator, handle it as `[0].'.
>
> 	* gcc.dg/pr32084.c: New test.
> 	* g++.dg/parse/offsetof9.C: New test.

This is OK.

Thanks.

Ian



More information about the Gcc-patches mailing list