January 09, 2023
https://issues.dlang.org/show_bug.cgi?id=23613

          Issue ID: 23613
           Summary: ImportC: asm with parentheses
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: doob@me.com

Compiling the following C code:

void _hreset(int __eax)
{
    __asm__ ("hreset $0" :: "a"(__eax));
}

Results in the following errors:

foo.c(3): Error: found `(` when expecting `{`
foo.c(5): Error: found `End of File` when expecting `}` following compound
statementng `return` statement

I should not that this code is guarded with:

#if __has_extension(gnu_asm)

I'm using macOS 13.0.1, DMD v2.101.1 and Xcode 14.2.

--