spir:
> Certainly ref qualifiers should be checked,
> shouldn't they? The situation indeed is somewhat special here.
>
> Foo getFoo(Token[] tokens, ref uint index)
> {...}
> Term[] getTerms (Term) (Term function (Token[], uint) parseFunc, Token[]
> tokens)
> {...}
> void main()
> {
> Foo[] foos = getTerms!(Foo)(&getFoo, s); # ==> segfault
> }Please, create a very small but complete program that shows the problem :-) It will go to Bugzilla. Bye, bearophile
