mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-29 10:39:37 +02:00
+ disallow using sizeof() and bitsizeof() on WebAssembly reference types
This commit is contained in:
parent
bc99569a35
commit
54af0d32f3
@ -460,6 +460,7 @@ implementation
|
||||
{ allow helpers for SizeOf and BitSizeOf }
|
||||
if p1.nodetype=typen then
|
||||
ttypenode(p1).helperallowed:=true;
|
||||
//Writeln(p1.nodetype, p1.resultdef.typ);
|
||||
if (p1.resultdef.typ=forwarddef) then
|
||||
Message1(type_e_type_is_not_completly_defined,tforwarddef(p1.resultdef).tosymname^);
|
||||
{$ifdef wasm}
|
||||
|
Loading…
Reference in New Issue
Block a user