On 11/09/2011 03:58 PM, Fabien Chêne wrote:
Well, here it is. I've added a very simple function in order to guess if a name is a declaration or a definition.
This seems unnecessary; a definition is also a declaration, so it's always correct to talk about a previous declaration.
+ if (dependent_type_p (current_class_type) + && is_overloaded_fn (target_decl)) + add_method (current_class_type, OVL_CURRENT (target_decl), decl);
If target_decl is overloaded, this should iterate through to add all of the functions in the list.
Jason