mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 16:09:25 +02:00
compiler: fix nested class types and consts usage outside class declaration
git-svn-id: trunk@14615 -
This commit is contained in:
parent
c39c87096a
commit
6e51a4d4a9
@ -1250,10 +1250,14 @@ implementation
|
|||||||
end;
|
end;
|
||||||
typesym:
|
typesym:
|
||||||
begin
|
begin
|
||||||
|
p1.free;
|
||||||
p1:=ctypenode.create(ttypesym(sym).typedef);
|
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;
|
end;
|
||||||
constsym:
|
constsym:
|
||||||
begin
|
begin
|
||||||
|
p1.free;
|
||||||
p1:=genconstsymtree(tconstsym(sym));
|
p1:=genconstsymtree(tconstsym(sym));
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user