mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-12 14:52:25 +02:00
* Avoid access violation. Use internal error instead
This commit is contained in:
parent
f672d4cccf
commit
bbecb015c9
@ -1840,8 +1840,9 @@ implementation
|
||||
and get the member owner instead of just created enumdef }
|
||||
if not assigned(aktenumdef) then
|
||||
begin
|
||||
searchsym(pattern,sym,st);
|
||||
if sym.typ=enumsym then
|
||||
if not searchsym(pattern,sym,st) then
|
||||
internalerror(202504121)
|
||||
else if sym.typ=enumsym then
|
||||
aktenumdef:=tenumsym(sym).definition
|
||||
else
|
||||
internalerror(201101021);
|
||||
|
Loading…
Reference in New Issue
Block a user