Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gdc build error: mir-cpuid/1.2.11/mir-cpuid/source/cpuid/x86_any.d:606:18: error: ‘a’ must be surrounded by parentheses #47

Open
mw66 opened this issue Jun 21, 2024 · 1 comment

Comments

@mw66
Copy link

mw66 commented Jun 21, 2024

gdc (GCC) 14.1.0

mir-cpuid/1.2.11/mir-cpuid/source/cpuid/x86_any.d:606:18: error: ‘a’ must be surrounded by parentheses
  606 |             "=a" a,
      |                  ^
@mw66
Copy link
Author

mw66 commented Jun 21, 2024

adding parentheses make gdc build:

    {                                                                                                                                                                                                       
        "cpuid" :                                                                                                                                                                                           
            "=a" (a),                                                                                                                                                                                       
            "=b" (b),                                                                                                                                                                                       
            "=c" (c),                                                                                                                                                                                       
            "=d" (d),                                                                                                                                                                                       
            : "a" (eax), "c" (ecx);                                                                                                                                                                         
    }                           

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

No branches or pull requests

1 participant