Opened 8 years ago

Closed 8 years ago

#54 closed defect (fixed)

return not detected

Reported by: Thierry Delisle Owned by: Rob Schluntz <rschlunt@…>
Priority: major Component: cfa-cc
Version: 1.0 Keywords: return reference
Cc:

Description

#struct node {
	node * next;
};

static inline node *& get_next( node & this ) { return node.next; }

generates error :

test.c:5:1 error: Non-void function returns no values: Return Statement, returning: 

Change History (3)

comment:1 by Rob Schluntz, 8 years ago

I think you meant return this.next;. The node.next syntax will eventually allow for qualified accessors, but this is not implemented yet.

in reply to:  1 comment:2 by Thierry Delisle, 8 years ago

Can we fix the error message?

comment:3 by Rob Schluntz <rschlunt@…>, 8 years ago

Owner: set to Rob Schluntz <rschlunt@…>
Resolution: fixed
Status: newclosed

In f9941ff:

Add error message for unimplemented qualified names [fixes #54]

Note: See TracTickets for help on using tickets.