charfi asma <charfiasma@xxxxxxxx> writes: > I look at the cp and java front end and they actually use TYPE_MEHODS to add > method to one class. > both implement add_method function that contains: > > DECL_CHAIN (fndecl) = TYPE_METHODS (this_class); > TYPE_METHODS (this_class) = fndecl; > > so the middle-end take this Generic representation of a method and gimplify it. > > so why it does not work in my case ? I think that they also pass the function to the middle-end separately, and just use the TYPE_METHODS in the frontend to keep track of them. I don't see anything in the middle-end which walks down the TYPE_METHOD, other than for generating debug info. Ian