Opened 6 years ago

Closed 6 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 Changed 6 years ago by Rob Schluntz

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

comment:2 in reply to:  1 Changed 6 years ago by Thierry Delisle

Can we fix the error message?

comment:3 Changed 6 years ago by Rob Schluntz <rschlunt@…>

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.