Skip to content

[clang-cl] Inline assembly statement with partially uppercase syntax fails to compile #118080

Open
@TheComputerGuy96

Description

@TheComputerGuy96

Godbolt example: https://godbolt.org/z/v5TYr7MKo

Here are the actual compile errors (because the clang-cl runner is broken right now):

frog.h(520,24): error: unknown token in expression
  520 |     __asm FLD DWord Ptr[x];
      |                        ^
frog.h(520,15): error: use of undeclared label 'DWord'
  520 |     __asm FLD DWord Ptr[x];
      |               ^
frog.h(520,21): error: use of undeclared label 'Ptr'
  520 |     __asm FLD DWord Ptr[x];
      |                     ^

Luckily this code can be disabled in the original header with NOASM define (but this is still a difference in behavior because clang-cl is meant to be a MSVC drop-in)

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang-cl`clang-cl` driver. Don't use for other compiler partsinline-asm

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions