diff --git a/compiler/pexpr.pas b/compiler/pexpr.pas
index 28860eb534..08be3fc5a2 100644
--- a/compiler/pexpr.pas
+++ b/compiler/pexpr.pas
@@ -3510,7 +3510,7 @@ implementation
                      not (sp_generic_para in srsym.symoptions) and
                      (token in [_LT, _LSHARPBRACKET])
                    ) then
-                 check_hints(srsym,srsym.symoptions,srsym.deprecatedmsg);
+                 check_hints(srsym,srsym.symoptions,srsym.deprecatedmsg,tokenpos);
 
                { if nothing found give error and return errorsym }
                if not assigned(srsym) or