From: "Hans-Bernhard Bröker" <HBBroeker@t-online.de>
To: cygwin@cygwin.com
Subject: Re: ssize_t
Date: Thu, 22 Dec 2016 20:51:00 -0000 [thread overview]
Message-ID: <75c5307a-2c10-dfbb-5c9d-08f52e3e0db8@t-online.de> (raw)
In-Reply-To: <deac8be3-fa7b-1716-0f2b-6974b183ba26@gmail.com>
Am 22.12.2016 um 20:39 schrieb Marco Atzeri:
> building latest Imagemagick, the test for ssize_t is now failing with a
> puzzling
>
> $ gcc ssize_t.c -o ssize_t
> ssize_t.c: In function ‘main’:
> ssize_t.c:115:22: error: expected expression before ‘)’ token
> if (sizeof ((ssize_t)))
> ^
>
> any clue what to look for ?
The test case reduces to a very simple one-liner:
int bar = sizeof((int));
Replacing the double (()) by single () gets rid of the miscompilation.
That looks like a bona fide GCC bug.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
next prev parent reply other threads:[~2016-12-22 20:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-22 19:40 ssize_t Marco Atzeri
2016-12-22 20:14 ` ssize_t Eric Blake
2016-12-22 20:19 ` ssize_t Eric Blake
2016-12-22 22:25 ` ssize_t Marco Atzeri
2016-12-22 20:51 ` Hans-Bernhard Bröker [this message]
2016-12-22 21:11 ` ssize_t Eric Blake
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=75c5307a-2c10-dfbb-5c9d-08f52e3e0db8@t-online.de \
--to=hbbroeker@t-online.de \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).