Opened 4 years ago

Last modified 4 years ago

#162 assigned defect

Member access of reference broken in goto statement

Reported by: Thierry Delisle Owned by: Thierry Delisle
Priority: major Component: cfa-cc
Version: 1.0 Keywords: Resolver
Cc:

Description (last modified by Thierry Delisle)

This code seems to resolve correctly but generates incorrect code.

struct outer {
	void * v;
};

void foo(outer & b) {
	goto *b.v;
}

Dumping the ast before and after the resolver seems to indicate this is a resolver bug.

Change History (1)

comment:1 Changed 4 years ago by Thierry Delisle

Description: modified (diff)
Note: See TracTickets for help on using tickets.