This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/32041] [4.3 Regression] offsetof buglet
- From: "mikpe at it dot uu dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jun 2009 12:12:45 -0000
- Subject: [Bug c/32041] [4.3 Regression] offsetof buglet
- References: <bug-32041-6@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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