[Issue 24811] New: Cant compile C code

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 13 20:29:38 UTC 2024


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

          Issue ID: 24811
           Summary: Cant compile C code
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: my-ijet at mail.ru

Created attachment 1919
  --> https://issues.dlang.org/attachment.cgi?id=1919&action=edit
lib.c

How to reproduce

//lib.c
typedef float       _Float32;
typedef double      _Float64;
typedef double      _Float32x;
typedef long double _Float64x;
//

clang -c lib.c # compile OK
dmd -c lib.c   # compile ERRORS
lib.c(1): Error: illegal combination of type specifiers
lib.c(2): Error: illegal combination of type specifiers
lib.c(3): Error: illegal combination of type specifiers
lib.c(4): Error: illegal combination of type specifiers
lib.c(4): Error: illegal type combination

--


More information about the Digitalmars-d-bugs mailing list