[Issue 22432] ImportC: casting result of postfix operator on a parenthesized expression to a typedef’d type is parsed incorrectly

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 12 01:07:42 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=22432

--- Comment #3 from dave287091 at gmail.com ---
Another weird construct that should parse, but fails:

struct Foo {
    int x;
};

struct Foo ident(struct Foo f){return f;}

int main(){
 int y11 = (ident)(f).x; // should be equivalent to ident(f).x
}

--


More information about the Digitalmars-d-bugs mailing list