ssize_t

Hans-Bernhard Bröker HBBroeker@t-online.de
Thu Dec 22 20:51:00 GMT 2016


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



More information about the Cygwin mailing list