Index: src/SymTab/Validate.cc
===================================================================
--- src/SymTab/Validate.cc	(revision bbbc067e84adc59b31d39e97991980bf6379934a)
+++ src/SymTab/Validate.cc	(revision 8d25360e4dfa05035c94eaafd0980fce401b0be7)
@@ -913,4 +913,5 @@
 			if ( ! inFunctionType ) {
 				ret->attributes.insert( ret->attributes.end(), typeInst->attributes.begin(), typeInst->attributes.end() );
+				typeInst->attributes.clear();
 			} else {
 				deleteAll( ret->attributes );
