----- Message d'origine ---- De : Ian Lance Taylor <iant@xxxxxxxxxx> À : charfi asma <charfiasma@xxxxxxxx> Cc : gcc-help@xxxxxxxxxxx Envoyé le : Sam 23 octobre 2010, 1h 44min 39s Objet : Re: Re : Re : [GENERIC] problem when adding 2 VAR_DEC in the main function charfi asma <charfiasma@xxxxxxxx> writes: > my problem is that the method is never added to the TYPE_METHOD list of the > RECROD_TYPE: The middle-end doesn't support type methods. The TYPE_METHODS field probably shouldn't really be in the middle-end at all; it's only used for generating debug info. Any work you do with TYPE_METHODS is entirely up to your frontend. Ian Hello, Thank you Ian for this clarification, but how can I add a class' method to the generic tree? should I add it to the TYPE_FIELDS just like attribute ? thank you very much. Asma