www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23866] New: ImportC: Multiple __declspecs rejected

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

          Issue ID: 23866
           Summary: ImportC: Multiple __declspecs rejected
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Keywords: ImportC
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: maxsamukha gmail.com

struct __declspec(align(16)) __declspec(no_init_all) S {
};

typedef struct __declspec(align(16)) __declspec(no_init_all) _S2 {
} S2;

----
Error: missing tag `identifier` after `struct`

Compiles after commenting out either of the declspecs.

--
Apr 29 2023