Throw better exception on wrong dynamic_templates
syntax
#51783
Merged
dynamic_templates
syntax
#51783