+2007-03-29 Richard Guenther <rguenther@suse.de>
+
+ * tree.c (cp_walk_subtrees): Do not set input_location.
+
2007-03-28 Simon Martin <simartin@users.sourceforge.net>
PR c++/29077
void *data, struct pointer_set_t *pset)
{
enum tree_code code = TREE_CODE (*tp);
- location_t save_locus;
tree result;
#define WALK_SUBTREE(NODE) \
} \
while (0)
- /* Set input_location here so we get the right instantiation context
- if we call instantiate_decl from inlinable_function_p. */
- save_locus = input_location;
- if (EXPR_HAS_LOCATION (*tp))
- input_location = EXPR_LOCATION (*tp);
-
/* Not one of the easy cases. We must explicitly go through the
children. */
result = NULL_TREE;
break;
default:
- input_location = save_locus;
return NULL_TREE;
}
/* We didn't find what we were looking for. */
out:
- input_location = save_locus;
return result;
#undef WALK_SUBTREE