Skip to content

Fix #24517 - ImportC: __pragma inside an expression is rejected - #24538

Open
udaykiriti wants to merge 2 commits into
dlang:masterfrom
udaykiriti:fix-24517
Open

udaykiriti wants to merge 2 commits into
dlang:masterfrom
udaykiriti:fix-24517

Conversation

@udaykiriti

@udaykiriti udaykiriti commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

MSVC ignores __pragma between tokens. Skip it after an operand in the postfix operator loop, so code like
while ((0,0) __pragma(warning(pop)) ) from strsafe.h parses.
Fix #24517

MSVC ignores __pragma between tokens. Skip it after an operand
in the postfix operator loop, so code like
`while ((0,0) __pragma(warning(pop)) )` from strsafe.h parses.
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

DMD perf check

Metric Base PR Δ
compile dmd itself (wall) 10.9 s 11.2 s +2.73%
All measurements
Metric Base PR Δ
compile hello.d (instr) 180.4 M 180.4 M -0.004%
compile hello.d -O -release (instr) 197.9 M 197.9 M -0.004%
compile Phobos (instr) 4,634.5 M 4,634.4 M -0.002%
compile Phobos codegen (instr) 1,410.1 M 1,410.1 M -0.005%
compile vibe.d (instr) 13,468.9 M 13,468.8 M 0.000%
compile ctRegex tests (instr) 29,474.2 M 29,474.2 M 0.000%
dmd binary size (stripped) 8.26 MB 8.26 MB 0.00%
hello binary size (stripped) 0.72 MB 0.72 MB 0.00%
peak RSS (compile hello.d) 42.22 MB 42.26 MB +0.10%
peak RSS (compile Phobos) 603.1 MB 602.9 MB -0.03%
peak RSS (compile vibe.d) 1860 MB 1860 MB 0.00%
peak RSS (compile ctRegex tests) 2032 MB 2032 MB 0.00%
page faults (compile hello.d) 8,667 8,663 -0.05%
page faults (compile Phobos) 152,431 152,430 0.00%
page faults (compile vibe.d) 474,976 474,988 0.00%
page faults (compile ctRegex tests) 518,105 518,103 0.00%
compile dmd itself (wall) 10.9 s 11.2 s +2.73%
compile ctRegex tests (wall) 3,827 ms 3,815 ms -0.30%
compile hello.d (wall) 48.8 ms 47.8 ms -1.93%
compile Phobos (wall) 1,158 ms 1,168 ms +0.89%

d5d9e5f vs merge-base 208f325 · about these metrics · historical dashboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ImportC: __pragma inside an expression is rejected

3 participants