Skip to content

Validate asm qualifiers in the owned parser - #541

Open
charliermarsh wants to merge 1 commit into
mainfrom
charlie/codex-toucan-asm-qualifiers
Open

Validate asm qualifiers in the owned parser#541
charliermarsh wants to merge 1 commit into
mainfrom
charlie/codex-toucan-asm-qualifiers

Conversation

@charliermarsh

Copy link
Copy Markdown
Member

A pre-parser scan treated every asm identifier as assembly, so valid C11 such as typedef int asm; asm const value = 1; failed before parsing. We validate qualifiers when parsing an actual asm statement and remove the separate source scanner.

The regression now passes for both C11 compiler profiles and remains rejected where GNU mode reserves the keyword. Parser, semantic, retained-asm, and native GCC/Clang checks pass, including invalid qualifier diagnostics at their source offsets.

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.

1 participant