The function 'foo' is not a valid constant function error occurs only in large builds

In reply to cdjones42:
*Can you show a complete example?
*