Bug 23802 – ImportC: __volatile__ is yet another alias for volatile

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2023-03-22T23:32:11Z
Last change time
2023-03-23T01:01:12Z
Keywords
pull
Assigned to
No Owner
Creator
dave287091

Comments

Comment #0 by dave287091 — 2023-03-22T23:32:11Z
Several macOS headers use __volatile__ as in __asm__ __volatile__. As asm volatile can now be parsed, this causes errors in code that would other compile fine.
Comment #1 by dlang-bot — 2023-03-22T23:38:43Z
@drpriver created dlang/dmd pull request #15025 "Fix Issue 23802 - ImportC: __volatile__ is yet another alias for vola…" fixing this issue: - Fix Issue 23802 - ImportC: __volatile__ is yet another alias for volatile Some system headers on macOS use this GCC pre-ansi spelling of volatile. https://github.com/dlang/dmd/pull/15025
Comment #2 by dlang-bot — 2023-03-23T01:01:12Z
dlang/dmd pull request #15025 "Fix Issue 23802 - ImportC: __volatile__ is yet another alias for vola…" was merged into master: - d2b4dc854b483be5b28da37e15f2bcc6ea8abc8a by drpriver: Fix Issue 23802 - ImportC: __volatile__ is yet another alias for volatile Some system headers on macOS use this GCC pre-ansi spelling of volatile. https://github.com/dlang/dmd/pull/15025