Hi, What is the proper way of inserting a new node (such as a FUNCTION_DECL or VAR_DECL) into a C++ AST prior to being gimplified? There are some examples around that are using the following functions in various combinations to modify the AST; pushdecl gimplify_function_tree cgraph_node::finalize_function but are those functions really appropriate for C++ DECLs? And Is it necessary to configure the scope, current_function_decl or other details? Any help, pointers and explanation of the matter appreciated. Regards, Chris