www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22496] New: importC: Error: illegal combination of type

https://issues.dlang.org/show_bug.cgi?id=22496

          Issue ID: 22496
           Summary: importC: Error: illegal combination of type specifiers
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: bachmeil yahoo.com

Created attachment 1833
  --> https://issues.dlang.org/attachment.cgi?id=1833&action=edit
Source file I'm trying to compile

I ran the original source file through the gcc preprocessor and got the
attached fsign_d.c file. It compiles with gcc:

gcc -c fsign_d.c

but when using dmd:

dmd -c fsign_d.c


/usr/include/x86_64-linux-gnu/bits/mathcalls.h(316): Error: illegal combination
of type specifiers
/usr/include/x86_64-linux-gnu/bits/mathcalls.h(316): Error: illegal combination
of type specifiers
/usr/include/x86_64-linux-gnu/bits/mathcalls.h(316): Error: illegal combination
of type specifiers
/usr/include/x86_64-linux-gnu/bits/mathcalls.h(322): Error: illegal combination
of type specifiers
/usr/include/x86_64-linux-gnu/bits/mathcalls.h(322): Error: illegal combination
of type specifiers
/usr/include/x86_64-linux-gnu/bits/mathcalls.h(322): Error: illegal combination
of type specifiers
/usr/include/x86_64-linux-gnu/bits/mathcalls.h(316): Error: illegal combination
of type specifiers
/usr/include/x86_64-linux-gnu/bits/mathcalls.h(316): Error: illegal combination
of type specifiers
/usr/include/x86_64-linux-gnu/bits/mathcalls.h(316): Error: illegal combination
of type specifiers
/usr/include/x86_64-linux-gnu/bits/mathcalls.h(322): Error: illegal combination
of type specifiers
/usr/include/x86_64-linux-gnu/bits/mathcalls.h(322): Error: illegal combination
of type specifiers
/usr/include/x86_64-linux-gnu/bits/mathcalls.h(322): Error: illegal combination
of type specifiers
/usr/include/x86_64-linux-gnu/bits/mathcalls.h(316): Error: illegal combination
of type specifiers
/usr/include/x86_64-linux-gnu/bits/mathcalls.h(316): Error: illegal combination
of type specifiers
/usr/include/x86_64-linux-gnu/bits/mathcalls.h(316): Error: illegal combination
of type specifiers
/usr/include/x86_64-linux-gnu/bits/mathcalls.h(322): Error: illegal combination
of type specifiers
/usr/include/x86_64-linux-gnu/bits/mathcalls.h(322): Error: illegal combination
of type specifiers
/usr/include/x86_64-linux-gnu/bits/mathcalls.h(322): Error: illegal combination
of type specifiers
/usr/include/string.h(43): Error: found `__dest` when expecting `,`
/usr/include/string.h(43): Error: found `__src` when expecting `,`

--
Nov 09 2021