https://bugzilla.gdcproject.org/show_bug.cgi?id=302
Bug ID: 302 Summary: `function` type UDA postfixes not allowed Product: GDC Version: 8,x Hardware: All OS: All Status: NEW Severity: normal Priority: Normal Component: gdc Assignee: ibuc...@gdcproject.org Reporter: aras...@protonmail.com I'm trying to port the UEFI `gnu-efi` package, for which I've found `@attribute("ms_abi")` to be immensely helpful. Unfortunately, this does not work: ``` @attribute("ms_abi") size_t function(int, int) foo; // Example, calling does not use ms_abi size_t function(int, int) @attribute("ms_abi") foo; // ERROR: user defined attributes cannot appear as postfixes ``` Should work according to D spec at https://dlang.org/spec/declaration.html#BasicType2X function type, but does not. ``` $ gdc --verbose Using built-in specs. COLLECT_GCC=gdc COLLECT_LTO_WRAPPER=/usr/local/gcc-8/libexec/gcc/x86_64-pc-linux-gnu/8.2.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc-8.2.0/configure --enable-languages=c,c++,d --prefix=/usr/local/gcc-8 --disable-nls --enable-multilib --enable-checking=release Thread model: posix gcc version 8.2.0 (GCC) ``` -- You are receiving this mail because: You are watching all bug changes.