This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/32041] [4.3 Regression] offsetof buglet



------- Comment #10 from mikpe at it dot uu dot se  2009-06-25 12:12 -------
(In reply to comment #9)
> Fixed.

The gcc-4.3 backport or PR32041 to c-parser.c adds an assignment to `loc'. The
mainline version needed that for build_array_ref, but in 4.3 build_array_ref
does not take a loc parameter so the assignment is redundant. Suggested fixup:

--- gcc-4.3-pr32041/gcc/c-parser.c.~1~  2009-06-25 14:01:22.000000000 +0200
+++ gcc-4.3-pr32041/gcc/c-parser.c      2009-06-25 14:06:20.000000000 +0200
@@ -5353,7 +5353,6 @@ c_parser_postfix_expression (c_parser *p
                  {
                    if (c_parser_next_token_is (parser, CPP_DEREF))
                      {
-                       loc = c_parser_peek_token (parser)->location;
                        offsetof_ref = build_array_ref (offsetof_ref,
                                                        integer_zero_node);
                        goto do_dot;


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32041


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]