[Bug 302] `function` type UDA postfixes not allowed
gdc-bugzilla at gdcproject.org
gdc-bugzilla at gdcproject.org
Thu Aug 16 11:54:41 UTC 2018
https://bugzilla.gdcproject.org/show_bug.cgi?id=302
--- Comment #7 from ARaspiK <araspik at protonmail.com> ---
Also, this fails too, not just postfixes:
module test;
import gcc.attribute;
alias func = @attribute("ms_abi") void function(int, int);
func foo;
void main() {
foo(2, 4);
}
gdc test.d -c -o test.o
test.d:5:35: error: user defined attributes not allowed for alias declarations
alias func = @attribute("ms_abi") void function(int, int);
^
At least some UDAs should be allowed.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the D.gnu
mailing list