Browse Source

+ add a message that can be used if an internal operator hides an existing operator overload

git-svn-id: trunk@39260 -
svenbarth 7 years ago
parent
commit
7522a34a67
2 changed files with 7 additions and 2 deletions
  1. 1 1
      .gitattributes
  2. 6 1
      compiler/msg/errore.msg

+ 1 - 1
.gitattributes

@@ -444,7 +444,7 @@ compiler/msg/errorct.msg svneol=native#text/plain
 compiler/msg/errord.msg svneol=native#text/plain
 compiler/msg/errorda.msg svneol=native#text/plain
 compiler/msg/errordu.msg svneol=native#text/plain
-compiler/msg/errore.msg svneol=native#text/plain
+compiler/msg/errore.msg -text svneol=native#text/plain
 compiler/msg/errores.msg svneol=native#text/plain
 compiler/msg/errorf.msg svneol=native#text/plain
 compiler/msg/errorfi.msg svneol=native#text/plain

+ 6 - 1
compiler/msg/errore.msg

@@ -436,7 +436,7 @@ scan_n_changecputype=02105_N_Changed CPU type to be consistent with specified co
 #
 # Parser
 #
-# 03346 is the last used one
+# 03347 is the last used one
 #
 % \section{Parser messages}
 % This section lists all parser messages. The parser takes care of the
@@ -1575,6 +1575,11 @@ parser_e_cannot_use_hardfloat_in_a_softfloat_environment=03345_E_The HardFloat d
 parser_e_invalid_internal_function_index=03346_E_Index $1 is not a valid internal function index
 % The index specified for the \var{compilerproc} directive is not an index that's recognized
 % by the compiler.
+parser_w_operator_overloaded_hidden_3=03347_W_Operator overload hidden by internal operator: "$1" $2 "$3"
+% An operator overload is defined for the specified overload, but the internal overload by the compiler
+% takes precedence. This only happens for operators that had been overloadable before (e.g. dynamic array + dynamic array),
+% but aren't anymore due to an internal operator being defined while this behavior is controllable by a modeswitch
+% (in case of dynamic arrays that is the modeswitch \var{ArrayOperators}).
 %
 %
 % \end{description}