Opened 8 years ago
Closed 8 years ago
#54 closed defect (fixed)
return not detected
Reported by: | Thierry Delisle | Owned by: | |
---|---|---|---|
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:
Note:
See TracTickets
for help on using tickets.
I think you meant
return this.next;
. Thenode.next
syntax will eventually allow for qualified accessors, but this is not implemented yet.