[Issue 20593] New: [GCC ASM] Parser syntax for asm operands differs from GCC
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sat Feb 22 10:55:56 UTC 2020
    
    
  
https://issues.dlang.org/show_bug.cgi?id=20593
          Issue ID: 20593
           Summary: [GCC ASM] Parser syntax for asm operands differs from
                    GCC
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: ibuclaw at gdcproject.org
This is permitted in D.
    asm { "cpuid" : "=a" a; }
But the documented syntax in gcc says that the expression/variable should be
around parentheses
(https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html#InputOperands)
The old (incorrect) syntax should be deprecated in favour of:
    asm { "cpuid" : "=a" (a); }
--
    
    
More information about the Digitalmars-d-bugs
mailing list