This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: ssize_t
- From: Hans-Bernhard Bröker <HBBroeker at t-online dot de>
- To: cygwin at cygwin dot com
- Date: Thu, 22 Dec 2016 21:51:06 +0100
- Subject: Re: ssize_t
- Authentication-results: sourceware.org; auth=none
- References: <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