Bug 14009 – iasm parser accepts incorrect AsmExp

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-01-19T13:56:00Z
Last change time
2015-01-19T15:21:37Z
Keywords
accepts-invalid, iasm, pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2015-01-19T13:56:26Z
The first instruction should be accepted, and the second one should be rejected. void main() { asm { //mov EAX, FS: 1 ? 2 : 3; // wrongly rejected with: Error: colon mov EAX, FS: 1 ? 2 : : 3; // wrongly accepted } }
Comment #1 by k.hara.pg — 2015-01-19T14:01:03Z
Comment #2 by github-bugzilla — 2015-01-19T15:21:37Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/5dc11b2d8cbf01bab8d579598d9f24245b32482b fix Issue 14009 - iasm parser accepts incorrect AsmExp https://github.com/D-Programming-Language/dmd/commit/6ef3d2b0e15a6454644c55e3818c8806631e55a0 Merge pull request #4312 from 9rnsr/fix14009 Issue 14009 - iasm parser accepts incorrect AsmExp