[1.7.x] Fixed #17719 -- Documented that template syntax sequences cannot be used as string literals. Backport of e02f45d5 from master