Web lists-archives.com

Re: ssize_t

Am 22.12.2016 um 20:39 schrieb Marco Atzeri:

building latest Imagemagick, the test for ssize_t is now failing with a

 $ 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