[Issue 23613] New: ImportC: asm with parentheses
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jan 9 17:00:48 UTC 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 at puremagic.com
Reporter: doob at 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.
--
More information about the Digitalmars-d-bugs
mailing list