Issue 23866 - ImportC: Multiple __declspecs rejected
Summary: ImportC: Multiple __declspecs rejected
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 normal
Assignee: No Owner
URL:
Keywords: ImportC, pull
Depends on:
Blocks:
 
Reported: 2023-04-29 10:02 UTC by Max Samukha
Modified: 2023-04-30 08:17 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Max Samukha 2023-04-29 10:02:19 UTC
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.
Comment 1 Dlang Bot 2023-04-30 05:54:34 UTC
@WalterBright created dlang/dmd pull request #15149 "fix Issue 23866 - ImportC: Multiple __declspecs rejected" fixing this issue:

- fix Issue 23866 - ImportC: Multiple __declspecs rejected

https://github.com/dlang/dmd/pull/15149
Comment 2 Dlang Bot 2023-04-30 08:17:20 UTC
dlang/dmd pull request #15149 "fix Issue 23866 - ImportC: Multiple __declspecs rejected" was merged into master:

- 903b988aafc7be313031b7e72dd431a23aa01b1f by Walter Bright:
  fix Issue 23866 - ImportC: Multiple __declspecs rejected

https://github.com/dlang/dmd/pull/15149