In reply to Valeriy Dzhafarov:
It is not legal to instantiate primitives inside an interface regardless of the mechanism used. You code does not compile on the tools that I have tried, so you must have encountered a specific tool problem.
This Mentor/Siemens EDA sponsored public forum is not for discussing tool specific usage or issues. Please read your tool's user manual or contact your tool vendor directly for support.