public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/57020] New: error: expected expression before ‘)’ token
@ 2013-04-21  6:57 aversa at email dot arizona.edu
  2013-10-21 20:50 ` [Bug c/57020] " mpolacek at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: aversa at email dot arizona.edu @ 2013-04-21  6:57 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 57020
           Summary: error: expected expression before ‘)’ token
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: aversa@email.arizona.edu


Created attachment 29908
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29908
full source file

I get this error:

elist.h:184:10: error: expected expression before ‘)’ token
  ((type *)((char *)(ptr)-(intptr_t)(&((type *)0)->member)))
          ^

Full code snippet:
#define list_entry(ptr, type, member) \
    ((type *)((char *)(ptr)-(intptr_t)(&((type *)0)->member)))
>From gcc-bugs-return-420673-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Apr 21 07:15:47 2013
Return-Path: <gcc-bugs-return-420673-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 14683 invoked by alias); 21 Apr 2013 07:15:46 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 14659 invoked by uid 48); 21 Apr 2013 07:15:42 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/57020] error:=?UTF-8?Q? expected expression before ‘?=)=?UTF-8?Q?’ token?Date: Sun, 21 Apr 2013 07:15:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Changed-Fields: Component
Message-ID: <bug-57020-4-r7GlOiNmvw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57020-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57020-4@http.gcc.gnu.org/bugzilla/>
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
Content-Type: text/plain; charset="UTF-8"
MIME-Version: 1.0
X-SW-Source: 2013-04/txt/msg01818.txt.bz2
Content-length: 596


http://gcc.gnu.org/bugzilla/show_bug.cgi?idW020

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|bootstrap                   |c

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-04-21 07:15:41 UTC ---
This is not the full source which is having issues.
This is only the header file where the #define is located.
I suspect you are using list_entry incorrectly.  Though the error message could
be better.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c/57020] error: expected expression before ‘)’ token
  2013-04-21  6:57 [Bug bootstrap/57020] New: error: expected expression before ‘)’ token aversa at email dot arizona.edu
@ 2013-10-21 20:50 ` mpolacek at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-10-21 20:50 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
                 CC|                            |mpolacek at gcc dot gnu.org
         Resolution|---                         |INVALID

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Testcase not coming.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-10-21 20:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-21  6:57 [Bug bootstrap/57020] New: error: expected expression before ‘)’ token aversa at email dot arizona.edu
2013-10-21 20:50 ` [Bug c/57020] " mpolacek at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).