diff options
author | Gaius Mulley <gaiusmod2@gmail.com> | 2024-04-25 18:31:55 +0100 |
---|---|---|
committer | Gaius Mulley <gaiusmod2@gmail.com> | 2024-04-25 18:31:55 +0100 |
commit | d0e1e1291b10372d71ad3d6cb66b333ea91097e7 (patch) | |
tree | 147715dd555f5c569c8b286f1d2cd775a3bd2f51 | |
parent | c96c2a304b4a98116520cce497fbf5bab7465f23 (diff) | |
download | gcc-d0e1e1291b10372d71ad3d6cb66b333ea91097e7.zip gcc-d0e1e1291b10372d71ad3d6cb66b333ea91097e7.tar.gz gcc-d0e1e1291b10372d71ad3d6cb66b333ea91097e7.tar.bz2 |
PR modula2/114836 Avoid concatenation of error strings to aid error locale translation
This patch avoids a concatenation of error strings making locale
translation of the error message easier.
gcc/m2/ChangeLog:
PR modula2/114836
* gm2-compiler/M2Range.mod (FoldTypeAssign): Avoid error
string concatenation.
Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
-rw-r--r-- | gcc/m2/gm2-compiler/M2Range.mod | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/m2/gm2-compiler/M2Range.mod b/gcc/m2/gm2-compiler/M2Range.mod index 7686620..a8e572e 100644 --- a/gcc/m2/gm2-compiler/M2Range.mod +++ b/gcc/m2/gm2-compiler/M2Range.mod @@ -1706,20 +1706,17 @@ BEGIN THEN (* Expression type compatibility rules for pass by reference parameters. *) compatible := ParameterTypeCompatible (tokenNo, - '{%4EN} parameter failure due to expression incompatibility ' + - 'between actual parameter {%3ad} and the {%4N} formal {%2ad} parameter in procedure {%1ad}', + '{%4EN} parameter failure due to expression incompatibility between actual parameter {%3ad} and the {%4N} formal {%2ad} parameter in procedure {%1ad}', procedure, formal, actual, paramNo, TRUE) ELSIF GetPIM () THEN (* Assignment type compatibility rules for pass by value PIM parameters. *) compatible := ParameterTypeCompatible (tokenNo, - '{%4EN} parameter failure due to assignment incompatibility ' + - 'between actual parameter {%3ad} and the {%4N} formal {%2ad} parameter in procedure {%1ad}', + '{%4EN} parameter failure due to assignment incompatibility between actual parameter {%3ad} and the {%4N} formal {%2ad} parameter in procedure {%1ad}', procedure, formal, actual, paramNo, FALSE) ELSE compatible := ParameterTypeCompatible (tokenNo, - '{%4EN} parameter failure due to parameter incompatibility ' + - 'between actual parameter {%3ad} and the {%4N} formal {%2ad} parameter in procedure {%1ad}', + '{%4EN} parameter failure due to parameter incompatibility between actual parameter {%3ad} and the {%4N} formal {%2ad} parameter in procedure {%1ad}', procedure, formal, actual, paramNo, FALSE) END ; IF compatible |