* forbid <ordinal> in <set type>

git-svn-id: trunk@17263 -
This commit is contained in:
florian 2011-04-06 20:32:45 +00:00
parent b911e3d1c3
commit 6fb666135f

View File

@ -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