On 05/24/16 12:28, Thomas Schwinge wrote:

+         static bool informed_once = false;
+         if (!informed_once)
+           {
+             inform (token->location,
+                     "if the routine directive is meant to apply to the "
+                     "lexically following function declaration or "
+                     "definition, either don't specify %<(%E)%> here, or "
+                     "place a function declaration before the directive",
+                     id);
+             informed_once = true;

'lexically following' is implementor-speak. This error message is for users who don't understand the difference between 'declaration' and 'use', so the wording should be simplified. As the most common error is attempting to name the immediately following function, place that clue first. I suggest
  "omit the %<(%E)%>, if you want to mark the immediately following function,
   or place this pragma after a declaration of the function to be marked"

nathan

Reply via email to