Opened 7 years ago
Closed 7 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:
Change History (3)
comment:1 follow-up: 2 Changed 7 years ago by
comment:3 Changed 7 years ago by
Owner: | set to Rob Schluntz <rschlunt@…> |
---|---|
Resolution: | → fixed |
Status: | new → closed |
In f9941ff:
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.