On 08 Apr 2011, at 08:58, Sven Barth wrote:

> You basically suggest to extend ttypenode.typecheck_pass to check for a class 
> helper, correct? If so then the problem is that I can't check whether I'm 
> inside one of the three allowed syssyms as no node is generated for them 
> (yet). Also typecheck_pass is already called inside comp_expr (by 
> postfixoperators) so I can't even say to simply not do 
> do_typecheckpass_changed.

Maybe you can do it in pass_1 instead, and add another boolean field to 
ttypenode similar to allowed (such as classhelper_allowed). Then you can set 
this "allowed" to true from the typecheck pass of sizeof/bitsizeof/typeinfo.


Jonas_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to