May 27, 2018 [Bug 291] New: Compile-time AssemblerTemplate is not supported | ||||
---|---|---|---|---|
| ||||
https://bugzilla.gdcproject.org/show_bug.cgi?id=291 Bug ID: 291 Summary: Compile-time AssemblerTemplate is not supported Product: GDC Version: 8,x Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: Normal Component: gdc Assignee: ibuclaw@gdcproject.org Reporter: araspik@protonmail.com According to the wiki (Using_GDC), which is currently down (I am getting "Sorry! This site is experiencing technical difficulties. ... (cannot access the database)"), the AssemblerTemplate string for extended inline assembly may be a compile-time string. That doesn't seem to be maintained, according to the compilation errors from this small program: ``` module test; enum assemblerTemplate(string instruction) = instruction; void main(string[] args) { asm { assemblerTemplate!("syscall") :: "a" 1; } } ``` Fails with error: ``` test.d: In function 'D main': test.d:7:43: sorry, unimplemented: D inline assembler statements are not supported in GDC. assemblerTemplate!("syscall") :: "a" 1; ^ ``` -- You are receiving this mail because: You are watching all bug changes. |
Copyright © 1999-2021 by the D Language Foundation