re PR c++/11702 ([unit-at-a-time] Failure to emit code for inlined function in space)

PR C++/11702
	* semantics.c (finish_id_expression): Mark all functions as used.

From-SVN: r70514
This commit is contained in:
Jan Hubicka 2003-08-17 10:07:27 +02:00 committed by Jan Hubicka
parent d234f34116
commit e20bcc5e13
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Sun Aug 17 10:05:38 CEST 2003 Jan Hubicka <jh@suse.cz>
PR C++/11702
* semantics.c (finish_id_expression): Mark all functions as used.
2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
PR c++/11512

View file

@ -2553,6 +2553,10 @@ finish_id_expression (tree id_expression,
{
decl = (adjust_result_of_qualified_name_lookup
(decl, scope, current_class_type));
if (TREE_CODE (decl) == FUNCTION_DECL)
mark_used (decl);
if (TREE_CODE (decl) == FIELD_DECL || BASELINK_P (decl))
*qualifying_class = scope;
else if (!processing_template_decl)