compiler: fix nested class types and consts usage outside class declaration

git-svn-id: trunk@14615 -
This commit is contained in:
paul 2010-01-11 18:35:08 +00:00
parent c39c87096a
commit 6e51a4d4a9

View File

@ -1250,10 +1250,14 @@ implementation
end;
typesym:
begin
p1.free;
p1:=ctypenode.create(ttypesym(sym).typedef);
if not(block_type in [bt_type,bt_const_type,bt_var_type]) then
p1:=cloadvmtaddrnode.create(p1);
end;
constsym:
begin
p1.free;
p1:=genconstsymtree(tconstsym(sym));
end
else