https://issues.dlang.org/show_bug.cgi?id=22304
Issue ID: 22304
Summary: importC: parsing gnu-style attributes fails if return
type is pointer
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
The following c code compiles:
int
__attribute__((__always_inline__))
foo(void){
return 0;
}
However, the following does not:
int *
__attribute__((__always_inline__)) // Error: identifier or `(` expected
foo(void){
return 0;
} // Error: identifier or `(` expected
--