Bug 23875 – ImportC: __attribute__ in a cast doesn't work

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2023-05-02T03:10:06Z
Last change time
2023-05-16T15:47:55Z
Keywords
ImportC, pull
Assigned to
No Owner
Creator
Walter Bright
See also
https://issues.dlang.org/show_bug.cgi?id=23864, https://issues.dlang.org/show_bug.cgi?id=23880

Comments

Comment #0 by bugzilla — 2023-05-02T03:10:06Z
int pluto() { (__attribute__((__vector_size__ (16))) int) {4,1,2,3}; } produces: test.c(5): Error: expression expected, not `__attribute__` test.c(5): Error: found `int` when expecting `)` test.c(5): Error: found `)` when expecting `;` following statement test.c(5): Error: found `}` when expecting `;` following statement test.c(7): Error: found `End of File` when expecting `}` following compound statement
Comment #1 by dlang-bot — 2023-05-03T04:29:19Z
@WalterBright updated dlang/dmd pull request #15172 "fix Issue 23857 23880" fixing this issue: - fix Issue 23875 23880 https://github.com/dlang/dmd/pull/15172
Comment #2 by dlang-bot — 2023-05-05T07:20:35Z
dlang/dmd pull request #15172 "fix Issue 23875 23880" was merged into master: - 39f8116c9711c77b244277ce8e66bae9da29ab90 by Walter Bright: fix Issue 23875 23880 https://github.com/dlang/dmd/pull/15172
Comment #3 by dlang-bot — 2023-05-07T20:53:25Z
dlang/dmd pull request #15196 "[CI] Revert "fix Issue 23875 23880"" was merged into master: - 1474d36467c90c279ff43d16bba9184a3b0934a8 by Dennis: Revert "fix Issue 23875 23880 (#15172)" This reverts commit c3a960da8b079393ea9f2d271ce7bb9c99c7f7c1. https://github.com/dlang/dmd/pull/15196
Comment #4 by dlang-bot — 2023-05-16T15:47:55Z
dlang/dmd pull request #15223 "Revert "[CI] Revert "fix Issue 23875 23880""" was merged into master: - 350848201f8590096c042767d3aa2d976bb3c1f2 by Walter Bright: Revert "Revert "fix Issue 23875 23880 (#15172)" (#15196)" This reverts commit 7da93174959de0c459f8c43fe9359b4794f6cada. https://github.com/dlang/dmd/pull/15223