* don't export types that have been merely renamed (and thus are part of another unit and potentially another package altogether)

git-svn-id: trunk@34340 -
This commit is contained in:
svenbarth 2016-08-19 13:29:33 +00:00
parent 1c696b0e77
commit f1cdb5c4e9

View File

@ -168,7 +168,10 @@ implementation
procedure export_typedef(def:tdef;symtable:tsymtable;global:boolean);
begin
if not (global or is_class(def)) or (df_internal in def.defoptions) then
if not (global or is_class(def)) or
(df_internal in def.defoptions) or
{ happens with type renaming declarations ("abc = xyz") }
(def.owner<>symtable) then
exit;
if ds_rtti_table_written in def.defstates then
exportname(def.rtti_mangledname(fullrtti));