[Issue 23875] New: ImportC: __attribute__ in a cast doesn't work
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue May 2 03:10:06 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23875
Issue ID: 23875
Summary: ImportC: __attribute__ in a cast doesn't work
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: bugzilla at digitalmars.com
int pluto()
{
(__attribute__((__vector_size__ (16))) int) {4,1,2,3};
}
produces:
test.c(5): Error: expression expected, not `__attribute__`
test.c(5): Error: found `int` when expecting `)`
test.c(5): Error: found `)` when expecting `;` following statement
test.c(5): Error: found `}` when expecting `;` following statement
test.c(7): Error: found `End of File` when expecting `}` following compound
statement
--
More information about the Digitalmars-d-bugs
mailing list