Fixes Issue 10325 - Constraints should be emitted for templated declarations.
Merge pull request #2161 from AndrejMitrovic/Fix10325

 Issue 10325 - Constraints should be emitted for templated declarations