winnt-cxx.c (i386_pe_adjust_class_at_definition): Check that elements of TYPE_METHODS are FUNCTION_DECLs.

* config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
	Check that elements of TYPE_METHODS are FUNCTION_DECLs.

From-SVN: r105577
This commit is contained in:
Danny Smith 2005-10-18 21:44:30 +00:00 committed by Danny Smith
parent 6d2989e117
commit f4df3ce5b9
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-10-18 Danny Smith <dannysmith@users.sourceforge.net>
* config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
Check that elements of TYPE_METHODS are FUNCTION_DECLs.
2005-10-17 Alexey Starovoytov <alexey.starovoytov@sun.com>
Ian Lance Taylor <ian@airs.com>

View File

@ -152,7 +152,8 @@ i386_pe_adjust_class_at_definition (tree t)
/* Check FUNCTION_DECL's. */
for (member = TYPE_METHODS (t); member; member = TREE_CHAIN (member))
maybe_add_dllimport (member);
if (TREE_CODE (member) == FUNCTION_DECL)
maybe_add_dllimport (member);
/* Check vtables */
for (member = CLASSTYPE_VTABLES (t); member; member = TREE_CHAIN (member))