mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 10:49:09 +02:00
* call getbasedef before getting the classdef of an enum (only the basedef
has an associated class) git-svn-id: branches/jvmbackend@20870 -
This commit is contained in:
parent
21722802fa
commit
622eb4b782
@ -409,7 +409,7 @@ implementation
|
|||||||
begin
|
begin
|
||||||
if (right.location.loc<>LOC_CONSTANT) then
|
if (right.location.loc<>LOC_CONSTANT) then
|
||||||
begin
|
begin
|
||||||
psym:=search_struct_member(tenumdef(right.resultdef).classdef,'FPCORDINAL');
|
psym:=search_struct_member(tenumdef(right.resultdef).getbasedef.classdef,'FPCORDINAL');
|
||||||
if not assigned(psym) or
|
if not assigned(psym) or
|
||||||
(psym.typ<>procsym) or
|
(psym.typ<>procsym) or
|
||||||
(tprocsym(psym).ProcdefList.count<>1) then
|
(tprocsym(psym).ProcdefList.count<>1) then
|
||||||
|
Loading…
Reference in New Issue
Block a user