mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 15:19:25 +02:00
* forbid <ordinal> in <set type>
git-svn-id: trunk@17263 -
This commit is contained in:
parent
b911e3d1c3
commit
6fb666135f
@ -229,22 +229,6 @@ implementation
|
||||
exit;
|
||||
end;
|
||||
|
||||
if (right.nodetype=typen) then
|
||||
begin
|
||||
if right.resultdef.typ<>setdef then
|
||||
begin
|
||||
CGMessage(sym_e_set_expected);
|
||||
exit;
|
||||
end;
|
||||
{ we need to create a setconstn }
|
||||
pst:=createsetconst(tsetdef(ttypenode(right).resultdef));
|
||||
t:=csetconstnode.create(pst,ttypenode(right).resultdef);
|
||||
dispose(pst);
|
||||
right.free;
|
||||
right:=t;
|
||||
typecheckpass(right);
|
||||
end;
|
||||
|
||||
typecheckpass(left);
|
||||
set_varstate(left,vs_read,[vsf_must_be_valid]);
|
||||
if codegenerror then
|
||||
|
Loading…
Reference in New Issue
Block a user