home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comsdk.cab / samples1.exe / smc / errors.h < prev    next >
Encoding:
Text File  |  2000-06-23  |  30.5 KB  |  378 lines

  1. // First all of the fatal errors:
  2.  
  3. SMC_ERR(ERRnone         ,0, NULL                                                  )
  4. SMC_ERR(ERRinternal     ,0, "INTERNAL COMPILER ERROR: %s"                         )
  5. SMC_ERR(ERR2manyErrs    ,0, "Too many error messages"                             )
  6. SMC_ERR(ERRnoMemory     ,0, "Out of memory"                                       )
  7. SMC_ERR(ERRerrDir       ,0, "Error directive"                                     )
  8. SMC_ERR(ERRbltinNS      ,0, "Could not locate system namespace '%s'"              )
  9. SMC_ERR(ERRbltinTp      ,0, "Could not locate system class '%s'"                  )
  10. SMC_ERR(ERRbltinMeth    ,0, "Could not locate system method '%s'"                 )
  11.  
  12. SMC_ERR(ERRopenRdErr    ,0, "Could not open source file '%s' for reading"         )
  13. SMC_ERR(ERRopenWrErr    ,0, "Could not open target file '%s' for writing"         )
  14. SMC_ERR(ERRreadErr      ,0, "Could not read source file '%s'"                     )
  15. SMC_ERR(ERRopenMDerr    ,0, "Could not open '%s' for metadata input (use -s<filename> to specify location)")
  16. SMC_ERR(ERRreadMD       ,0, "Could not read metadata"                             )
  17. SMC_ERR(ERRopenMDbad    ,0, "Could not read metadata from file '%s'"              )
  18. SMC_ERR(ERRwriteErr     ,0, "Could not write to output file '%s'"                 )
  19. SMC_ERR(ERRopenCOR      ,0, "Could not initialize COM+ Runtime"                   )
  20. SMC_ERR(ERRmetadata     ,0, "Could not create metadata"                           )
  21. SMC_ERR(ERRdebugInfo    ,0, "Could not emit debugging information"                )
  22. SMC_ERR(ERRundefTref    ,0, "Could not resolve metadata reference to type '%s'"   )
  23. SMC_ERR(ERRbadInputFF   ,0, "Invalid input file format in '%s': expected a %s file")
  24. SMC_ERR(ERRnoOutfName   ,0, "Name of output file not specified, please use -O"    )
  25.  
  26. // End of fatal errors, other errors begin:
  27.  
  28. SMC_ERR(ERRidTooLong    ,0, "Identifier too long"                                 )
  29. SMC_ERR(ERRbadNumber    ,0, "Invalid number"                                      )
  30. SMC_ERR(ERRillegalChar  ,0, "Invalid character"                                   )
  31. SMC_ERR(ERRbadCharCns   ,0, "Invalid character constant"                          )
  32. SMC_ERR(ERRbadEscCh     ,0, "Invalid escape character"                            )
  33. SMC_ERR(ERRnoStrEnd     ,0, "Unterminated string constant"                        )
  34. SMC_ERR(ERRnoCmtEnd     ,0, "Unterminated comment"                                )
  35. SMC_ERR(ERRnestCmt      ,0, "Nested comment"                                      )
  36. SMC_ERR(ERRnoUnicodeEsc ,0, "Expected Unicode escape sequence"                    )
  37. SMC_ERR(ERRbadPPdir     ,0, "Malformed '#' directive"                             )
  38. SMC_ERR(ERRnoEOL        ,0, "End of line expected"                                )
  39. SMC_ERR(ERRnoEndif      ,0, "Missing 'endif' for directive on line %u"            )
  40.  
  41. SMC_ERR(ERRnoClassDef   ,0, "Cannot find definition for class '%s'"               )
  42. SMC_ERR(ERRnoEnumDef    ,0, "Cannot find definition for enum '%s'"                )
  43. SMC_ERR(ERRnoEOF        ,0, "Expected end of file"                                )
  44. SMC_ERR(ERRnoColon      ,0, "Expected ':'"                                        )
  45. SMC_ERR(ERRnoComma      ,0, "Expected ','"                                        )
  46. SMC_ERR(ERRnoSemic      ,0, "Expected ';'"                                        )
  47. SMC_ERR(ERRnoLparen     ,0, "Expected '('"                                        )
  48. SMC_ERR(ERRnoRparen     ,0, "Expected ')'"                                        )
  49. SMC_ERR(ERRnoRbrack     ,0, "Expected ']'"                                        )
  50. SMC_ERR(ERRnoLcurly     ,0, "Expected '{'"                                        )
  51. SMC_ERR(ERRnoRcurly     ,0, "Expected '}'"                                        )
  52. SMC_ERR(ERRnoEqual      ,0, "Expected '='"                                        )
  53. SMC_ERR(ERRnoGt         ,0, "Expected '>'"                                        )
  54. SMC_ERR(ERRnoCmRc       ,0, "Expected ',' or '}'"                                 )
  55. SMC_ERR(ERRnoCmSc       ,0, "Expected ',' or ';'"                                 )
  56. SMC_ERR(ERRnoSmLc       ,0, "Expected ';' or '{'"                                 )
  57. SMC_ERR(ERRnoIN         ,0, "Expected 'in'"                                       )
  58.  
  59. SMC_ERR(ERRbadLcurly    ,0, "Unexpected '{' found"                                )
  60. SMC_ERR(ERRbadElse      ,0, "'else' without a matching 'if'"                      )
  61. SMC_ERR(ERRbadEndif     ,0, "'endif' without a matching 'if'"                     )
  62. SMC_ERR(ERRnoEOX        ,0, "Expected operator or end of expression"              )
  63.  
  64. SMC_ERR(ERRnoDecl       ,0, "Expected declaration"                                )
  65. SMC_ERR(ERRnoIdent      ,0, "Expected identifier"                                 )
  66. SMC_ERR(ERRnoString     ,0, "String expected"                                     )
  67. SMC_ERR(ERRnoType       ,0, "Expected type specifier"                             )
  68. SMC_ERR(ERRbadQualid    ,0, "Qualified name not allowed here"                     )
  69. SMC_ERR(ERRbadQualName  ,0, "Invalid qualified name '%s'"                         )
  70. SMC_ERR(ERRidNotType    ,0, "The name '%s' doesn't denote a type"                 )
  71. SMC_ERR(ERRundefName    ,0, "Undefined name '%s'"                                 )
  72. SMC_ERR(ERRnoSuchMem    ,0, "The class '%s' doesn't contain a member '%s'"        )
  73. SMC_ERR(ERRbadMain      ,0, "Function must be declared as 'int main(String [])'"  )
  74. SMC_ERR(ERRbadAccSpec   ,0, "This access specifier is not allowed here"           )
  75. SMC_ERR(ERRdupModifier  ,0, "Duplicate modifier"                                  )
  76. SMC_ERR(ERRdupIntfc     ,0, "Duplicate interface include specifier"               )
  77. SMC_ERR(ERRbadModifier  ,0, "Illegal type modifier(s)"                            )
  78. SMC_ERR(ERRdmModifier   ,0, "A data member cannot be declared with '%s'"          )
  79. SMC_ERR(ERRfmModifier   ,0, "A method cannot be declared with '%s'"               )
  80. SMC_ERR(ERRlvModifier   ,0, "A local variable cannot be declared with '%s'"       )
  81. SMC_ERR(ERRfmModifier2  ,0, "A method cannot be both '%s' and '%s'"               )
  82. SMC_ERR(ERRlvAccess     ,0, "Access specifiers not allowed with local variables"  )
  83. SMC_ERR(ERRnoClassName  ,0, "Class name expected"                                 )
  84. SMC_ERR(ERRnotAclass    ,0, "'%s' does not denote a class"                        )
  85. SMC_ERR(ERRbadIdent     ,0, "Unexpected identifier"                               )
  86. SMC_ERR(ERRbadNSmem     ,0, "Illegal namespace member"                            )
  87. SMC_ERR(ERRredefMem     ,0, "The member '%s' has already been declared"           )
  88. SMC_ERR(ERRredefName    ,0, "The name '%s' has already been declared"             )
  89. SMC_ERR(ERRredefBody    ,0, "Two bodies given for '%s'"                           )
  90. SMC_ERR(ERRredefEnum    ,0, "The enum type '%s' has already been defined"         )
  91. SMC_ERR(ERRredefClass   ,0, "The class '%s' has already been defined"             )
  92. SMC_ERR(ERRredefLcl     ,0, "Local variable '%s' has already been declared"       )
  93. SMC_ERR(ERRcircDep      ,0, "'%s' has a circular dependency"                      )
  94. SMC_ERR(ERRundefCls     ,0, "Cannot find definition for class '%s'"               )
  95. SMC_ERR(ERRnoCnsInit    ,0, "Members declared 'const' must be initialized"        )
  96. SMC_ERR(ERRnoVarInit    ,0, "Initialization not found for '%s'"                   )
  97. SMC_ERR(ERRdupMemInit   ,0, "Member '%s' has already been initialized"            )
  98. SMC_ERR(ERRrecClass     ,0, "Attempt to include a copy of class '%s' in itself"   )
  99. SMC_ERR(ERRextCns       ,0, "A variable can't be 'const' and 'extern'"            )
  100. SMC_ERR(ERRbadInit      ,0, "Initializer not allowed here"                        )
  101. SMC_ERR(ERRnoIntType    ,0, "Integer type expected"                               )
  102. SMC_ERR(ERRnoIntExpr    ,0, "Integer constant expression expected"                )
  103. SMC_ERR(ERRnoCnsExpr    ,0, "Constant expression expected"                        )
  104. SMC_ERR(ERRbadArrSize   ,0, "Array size must be a positive constant"              )
  105. SMC_ERR(ERRbadFnBody    ,0, "Variable has illegal initializer"                    )
  106. SMC_ERR(ERRbadBfld      ,0, "A bitfield may not have type '%s'"                   )
  107. ///////(ERRmgdBfld      ,0, "Managed classes may not have bitfield members"       )
  108. SMC_ERR(ERRstmBfld      ,0, "A bitfield may not be 'static'"                      )
  109. SMC_ERR(ERRbadBFsize    ,0, "Bitfield can't have witdh of %u (underlying type has %u bits)")
  110. SMC_ERR(ERRbfldAddr     ,0, "Cannot take address of bitfield member '%s'"         )
  111. SMC_ERR(ERRbadOvl       ,0, "Overloaded '%s' and '%s' differ only in return type" )
  112. SMC_ERR(ERRbadUTag      ,0, "Tag '%s' is not a suitable data member"              )
  113. SMC_ERR(ERRbadUmem      ,0, "Expected tagged union member - 'case' or 'default'"  )
  114. SMC_ERR(ERRmulUmem      ,0, "A tagged union section may contain only a single member")
  115. SMC_ERR(ERRbadExpTp     ,0, "Expected value of type '%s' not '%s'"                )
  116. SMC_ERR(ERRnoNspMem     ,0, "The namespace '%s' doesn't contain '%s'"             )
  117. SMC_ERR(ERRnoClsMem     ,0, "The class '%s' doesn't contain '%s'"                 )
  118. SMC_ERR(ERRnoTPmems     ,0, "'%s' doesn't contain any types"                      )
  119. SMC_ERR(ERRnoMems       ,0, "'%s' doesn't contain any members"                    )
  120. SMC_ERR(ERRnoGlobNm     ,0, "Undefined global name '%s'"                          )
  121. SMC_ERR(ERRbadCall      ,0, "Call of a non-function"                              )
  122. SMC_ERR(ERRnoOvlMatch   ,0, "No overloaded method matches the call '%s'"          )
  123. SMC_ERR(ERRnoDlgMatch   ,0, "The argument '%s' doesn't match delegate '%s'"       )
  124. SMC_ERR(ERRhideMatch    ,0, "Matching base class method '%s' is hidden"           )
  125. SMC_ERR(ERRmisgArg      ,0, "Missing arguments in call to '%s'"                   )
  126. SMC_ERR(ERRmanyArg      ,0, "Too many arguments in call to '%s'"                  )
  127. SMC_ERR(ERRbadArgValNam ,0, "Value for argument '%s' of '%s' cannot be converted from '%s'" )
  128. SMC_ERR(ERRbadArgValNum ,0, "Value for argument %s of '%s' cannot be converted from '%s'" )
  129. SMC_ERR(ERRbadMgdMod    ,0, "Only namespaces and classes may be declared '%s'"    )
  130. SMC_ERR(ERRmgdGlobVar   ,0, "File-scope variables may not have managed type for now")
  131. SMC_ERR(ERRmgdStatVar   ,0, "Local static variables may not have managed type for now")
  132. SMC_ERR(ERRbadUnmInt    ,0, "An interface cannot be declared 'unmanaged'"         )
  133. SMC_ERR(ERRbadGlobInt   ,0, "An interface cannot be declared in global scope"     )
  134. SMC_ERR(ERRassgCns      ,0, "Cannot assign to constant '%s'"                      )
  135. SMC_ERR(ERRassgLit      ,0, "Cannot assign to a constant"                         )
  136. SMC_ERR(ERRnotLvalue    ,0, "Lvalue required here"                                )
  137. SMC_ERR(ERRbadIndex     ,0, "A value of type '%s' cannot be indexed with '[]'"    )
  138. SMC_ERR(ERRnoArrDim     ,0, "Array dimension missing"                             )
  139. SMC_ERR(ERRbadBrInit    ,0, "Variable of type '%s' cannot be initialized via '{}'")
  140. SMC_ERR(ERRbadBrNew     ,0, "A value of type '%s' cannot be initialized with '{}'")
  141. SMC_ERR(ERRnoArrSize    ,0, "Array without a dimension not allowed here"          )
  142. SMC_ERR(ERRbadUndimMem  ,0, "Undimensioned array member must be last in struct"   )
  143. SMC_ERR(ERRemptyArray   ,0, "Unmanaged arrays may not have 0 size"                )
  144. SMC_ERR(ERRbadPtrUse    ,0, "The pointer type '%s' cannot be used here"           )
  145. SMC_ERR(ERRbadMgInit    ,0, "Variables of managed type '%s' cannot be initialized via '{}'")
  146. SMC_ERR(ERRarrInitMany  ,0, "Too many initializers specified for array, %u expected")
  147. SMC_ERR(ERRstrInitMany  ,0, "Initializer string too long, %u characters expected" )
  148. SMC_ERR(ERRlvInvisible  ,0, "Cannot use local variable '%s' before its declaration")
  149. SMC_ERR(ERRnoNSnm       ,0, "The name '%s' doesn't denote a namespace"            )
  150. SMC_ERR(ERRambigUse     ,0, "Two symbols in used namespaces match: '%s' and '%s'" )
  151. SMC_ERR(ERRdiffMethRet  ,0, "Method '%s' was earlier declared with return type '%s'")
  152. SMC_ERR(ERRdiffVirtRet  ,0, "Return type of virtual method '%s' differs from '%s'")
  153. SMC_ERR(ERRvirtAccess   ,0, "Cannot reduce access level of overridden method '%s'")
  154. SMC_ERR(ERRdiffPropTp   ,0, "Type of virtual property '%s' differs from '%s'"     )
  155. SMC_ERR(ERRdupDefProp   ,0, "Class has already has a default property with another name: '%s'")
  156. SMC_ERR(ERRnoPropDef    ,0, "Expected '{' followed by property accessor method declaration")
  157. SMC_ERR(ERRpropAccDef   ,0, "Method conflicts with property accessor '%s'"        )
  158. SMC_ERR(ERRnewIntf      ,0, "Cannot create an instance of an interface type '%s'" )
  159. SMC_ERR(ERRnewAbstract  ,0, "Cannot create an instance of an abstract class '%s'" )
  160. SMC_ERR(ERRbadNewTyp    ,0, "Cannot create an instance of type '%s'"              )
  161. SMC_ERR(ERRnewNoVal     ,0, "'new' expression for type '%s' requires an initial value")
  162. SMC_ERR(ERRnoCtorMatch  ,0, "The class doesn't have a constructor that matches '%s'")
  163. SMC_ERR(ERRintfImpl     ,0, "Cannot create an instance of an interface type '%s'" )
  164. SMC_ERR(ERRintfBase     ,0, "A class cannot inherit from an interface: '%s'"      )
  165. SMC_ERR(ERRsealedInh    ,0, "Cannot inherit from sealed type '%s'"                )
  166. SMC_ERR(ERRstrInhCls    ,0, "A struct cannot inherit from class '%s'"             )
  167. SMC_ERR(ERRunmIntf      ,0, "Unmanaged classes may not include interfaces"        )
  168. SMC_ERR(ERRinclCls      ,0, "Only interfaces may be included: '%s'"               )
  169. SMC_ERR(ERRxMgdInh      ,0, "Management of base class '%s' doesn't match derived class")
  170. SMC_ERR(ERRxCtxInh      ,0, "Context flavor of base class '%s' doesn't match derived class")
  171. SMC_ERR(ERRctxAddr      ,0, "Cannot take address of member of a appdomain/contextful class '%s'")
  172. SMC_ERR(ERRbadEHtype    ,0, "Type '%s' is not a class derived from 'Exception'"   )
  173. SMC_ERR(ERRbadReThrow   ,0, "Argument to 'throw' is required outside of a catch block")
  174. SMC_ERR(ERRtryNoBlk     ,0, "'try' block expected, '{' not found"                 )
  175. SMC_ERR(ERRnoHandler    ,0, "'catch', 'finally', or 'except' expected following 'try' block")
  176. SMC_ERR(ERRfinExit      ,0, "Attempt to prematurely exit from a 'finally' block"  )
  177. SMC_ERR(ERRbadFNbody    ,0, "Function body unexpected for a variable"             )
  178. SMC_ERR(ERRdupProp      ,0, "Duplicate property '%s' declaration"                 )
  179. SMC_ERR(ERRdupArg       ,0, "More than one argument named '%s'"                   )
  180. SMC_ERR(ERRnotClass     ,0, "Cannot use '%s' here, it doesn't denote a class"     )
  181. SMC_ERR(ERRsyntax       ,0, "Syntax error"                                        )
  182. SMC_ERR(ERRnoDim        ,0, "Missing array dimension"                             )
  183. SMC_ERR(ERRbadSizeof    ,0, "Illegal operand of 'sizeof'"                         )
  184. SMC_ERR(ERRoperType     ,0, "Can't apply operator '%s' to type '%s'"              )
  185. SMC_ERR(ERRoperType2    ,0, "Can't apply operator '%s' to types '%s' and '%s'"    )
  186. SMC_ERR(ERRnotAfunc     ,0, "Illegal call: '%s' doesn't denote a function"        )
  187. SMC_ERR(ERRtypedefNm    ,0, "Typedef name '%s' has to match the tag name '%s'"    )
  188. SMC_ERR(ERRmemWOthis    ,0, "Reference to non-static member '%s' without an object")
  189. SMC_ERR(ERRundefNspm    ,0, "The namespace '%s' doesn't have a member '%s'"       )
  190. SMC_ERR(ERRbadDotOp     ,0, "The '.' operator cannot be applied to a value of type '%s'")
  191. SMC_ERR(ERRbadArrOp     ,0, "The '->' operator cannot be applied to a value of type '%s'")
  192. SMC_ERR(ERRnotMember    ,0, "The type '%s' doesn't have a member '%s'"            )
  193. SMC_ERR(ERRmsgArgs      ,0, "Need argument list for call to member '%s'"          )
  194. SMC_ERR(ERRbadArgs      ,0, "The member '%s' is not a function"                   )
  195. SMC_ERR(ERRambigCall    ,0, "Call is ambiguous between '%s' and '%s'"             )
  196. SMC_ERR(ERRambigConv    ,0, "Conversion is ambiguous: '%s' and '%s'"              )
  197. SMC_ERR(ERRambigMem     ,0, "The member '%s' is ambiguous: found in '%s' and '%s'")
  198. SMC_ERR(ERRbadCastImp   ,0, "Cannot implicitly convert from type '%s' to '%s'"    )
  199. SMC_ERR(ERRbadCastExp   ,0, "A value of type '%s' cannot be cast to type '%s'"    )
  200. SMC_ERR(ERRbadCastNul   ,0, "'null' cannot be converted to type '%s'"             )
  201. SMC_ERR(ERRdivZero      ,0, "Division by constant 0"                              )
  202. SMC_ERR(ERRbadMgdTyp    ,0, "'managed' not followed by an array in type"          )
  203. SMC_ERR(ERRbadUnmTyp    ,0, "'unmanaged' not followed by an array in type"        )
  204. SMC_ERR(ERRbadArrowNC   ,0, "'->' cannot be used after a namespace or class name" )
  205. SMC_ERR(ERRbadIndir     ,0, "The indirection operator cannot be applied to '%s'"  )
  206. SMC_ERR(ERRlabRedef     ,0, "A label with the name '%s' has already been defined" )
  207. SMC_ERR(ERRundefLab     ,0, "The label '%s' has not been defined"                 )
  208. SMC_ERR(ERRbadBreak     ,0, "'break' is not allowed here, not in a switch or loop")
  209. SMC_ERR(ERRbadCont      ,0, "'continue' is not allowed here, not in a loop"       )
  210. SMC_ERR(ERRbadCase      ,0, "'case' only allowed within 'switch' statements"      )
  211. SMC_ERR(ERRbadDefl      ,0, "'default' only allowed within 'switch' statements"   )
  212. SMC_ERR(ERRdupDefl      ,0, "Duplicate 'default' label in a 'switch' statement"   )
  213. SMC_ERR(ERRdupCaseVal   ,0, "The case label '%s' was specified more than once"    )
  214. SMC_ERR(ERRnoMemName    ,0, "A member name was expected"                          )
  215. SMC_ERR(ERRredefAnMem   ,0, "Type containing anonymous union already has a member '%s'")
  216. SMC_ERR(ERRbadThis      ,0, "'this' can only be used in non-static methods"       )
  217. SMC_ERR(ERRnoWhile      ,0, "A 'do' statement must end with a 'while' condition"  )
  218. SMC_ERR(ERRbadVoid      ,0, "Parameters and variables cannot have type 'void'"    )
  219. SMC_ERR(ERRbadInitSt    ,0, "A variable of type '%s' cannot be initialized this way")
  220. SMC_ERR(ERRinitNotCns   ,0, "A variable initializer must be a constant value"     )
  221. SMC_ERR(ERRnoLinkStr    ,0, "A linkage name string required in import declaration")
  222. SMC_ERR(ERRbadLinkStr   ,0, "Linkage string must look like 'DLLname:entrypoint'"  )
  223. SMC_ERR(ERRbadArrLen    ,0, "The type '%s' is not an acceptable operand for 'arraylen'")
  224. SMC_ERR(ERRcantRet      ,0, "Can't return a value from a 'void' method"           )
  225. SMC_ERR(ERRmisgRet      ,0, "Expected return value of type '%s'"                  )
  226. SMC_ERR(ERRbadOperNm    ,0, "Operator name not valid"                             )
  227. SMC_ERR(ERRintfDM       ,0, "Interfaces may only include methods and constants"   )
  228. SMC_ERR(ERRintfDup      ,0, "Interfaces '%s' has already been specified"          )
  229. SMC_ERR(ERRtypeidOp     ,0, "The 'typeid' operator cannot be applied to type '%s'")
  230. SMC_ERR(ERRbadConcat    ,0, "Cannot concatenate a string and a value of type '%s'")
  231. SMC_ERR(ERRchgClsFlv    ,0, "Type '%s' was declared elsewhere as '%s'"            )
  232. SMC_ERR(ERRnotClsVal    ,0, "Cannot use a value of type '%s' here, class expected")
  233. SMC_ERR(ERRbadOvlOp     ,0, "Overloaded operator must be a 'static' method"       )
  234. SMC_ERR(ERRbadOvlOpC    ,0, "Overloaded operators must have one or two arguments" )
  235. SMC_ERR(ERRbadOvlOp1    ,0, "Overloaded operator '%s' must have one argument"     )
  236. SMC_ERR(ERRbadOvlOp2    ,0, "Overloaded operator '%s' must have two arguments"    )
  237. SMC_ERR(ERRbadOvlOp12   ,0, "Overloaded operator '%s' must have one or two arguments")
  238. SMC_ERR(ERRbadOvlOpT    ,0, "Overloaded operator must take an argument of type '%s'")
  239. SMC_ERR(ERRbadOvlRet    ,0, "Overloaded operator must return '%s'"                )
  240. SMC_ERR(ERRbadOvlAcc    ,0, "Overloaded operator must be declared 'public'        ")
  241. SMC_ERR(ERRbadOvlEq     ,0, "Overloaded operator '%s' must return 'bool'"         )
  242. SMC_ERR(ERRbadOvlCmp    ,0, "Overloaded operator '%s' must return 'int'"          )
  243. SMC_ERR(ERRdefOvlVal    ,0, "Overloaded operator arguments may not have defaults"  )
  244. SMC_ERR(ERRimplAbst     ,0, "Class '%s' is implicitly abstract, it doesn't implement '%s'")
  245. SMC_ERR(ERRabsFNbody    ,0, "Cannot define a body for abstract method '%s'"       )
  246. SMC_ERR(ERRabsPFbody    ,0, "Cannot define a body for abstract property accessor '%s'")
  247. SMC_ERR(ERRabsNotVirt   ,0, "The method '%s' was declared 'abstract' but not 'virtual'")
  248. SMC_ERR(ERRmsgPFbody    ,0, "Missing body for property accessor '%s'"             )
  249. SMC_ERR(ERRintfFNacc    ,0, "Cannot define an interface method to be 'protected' or 'private'")
  250. SMC_ERR(ERRnoPropSym    ,0, "Class '%s' has no '%s' property with the name '%s'"  )
  251. SMC_ERR(ERRnoPropOvl    ,0, "Class '%s' has no '%s' property '%s' that matches the argument list"  )
  252. SMC_ERR(ERRbadBaseCall  ,0, "Use of 'baseclass' is only allowed in a constructor of a class that has a base class")
  253. SMC_ERR(ERRctorRetTP    ,0, "Method name matches that of the class, if you're declaring a constructor please omit the return type")
  254. SMC_ERR(ERRbadAlign     ,0, "Alignment value must be 1,2,4,8,18 or push/pop"      )
  255. SMC_ERR(ERRnoAccess     ,0, "Access to '%s' is not permitted here"                )
  256. SMC_ERR(ERRnotFlx       ,0, "The '%s' function can only be used in a filter expression")
  257. SMC_ERR(ERRnotHnd       ,0, "The '%s' function can only be used in an SEH handler")
  258. SMC_ERR(ERRumgRef       ,0, "References are not allowed for now (use 'out' or 'inout' for byref args)")
  259. SMC_ERR(ERRmgdPtr       ,0, "Pointers to managed classes not allowed: '%s'"       )
  260. SMC_ERR(ERRbyref2refany ,0, "Typed byref's (void &) may not be passed by reference")
  261. SMC_ERR(ERRbadRefArr    ,0, "Cannot declare an unmanaged array of '%s'"           )
  262. SMC_ERR(ERRbadTagMem    ,0, "Tagged unions can only contain fields and methods"   )
  263. SMC_ERR(ERRbadStrCase   ,0, "'case' labels only allowed in tagged union members"  )
  264. SMC_ERR(ERRumgFldMgd    ,0, "Members of unmanaged types may not of be managed type")
  265. SMC_ERR(ERRchgMgmt      ,0, "Management is confused: '%s' was declared earlier as '%s'")
  266. SMC_ERR(ERRrecFld       ,0, "A value type cannot contain a member with its own type")
  267. SMC_ERR(ERRsafeInd      ,0, "Pointer indirection is not allowed in typesafe mode" )
  268. SMC_ERR(ERRsafeDel      ,0, "'delete' is not allowed in typesafe mode"            )
  269. SMC_ERR(ERRsafeArrX     ,0, "Unmanaged array indexing is not allowed in typesafe mode")
  270. SMC_ERR(ERRunsafeCast   ,0, "Cast from '%s' to '%s' is not allowed in typesafe mode")
  271. SMC_ERR(ERRmulEntry     ,0, "Image has more than entry point: '%s' and '%s'"      )
  272. SMC_ERR(ERRnoEntry      ,0, "Image has no entry point, it should be declared as 'void main(String [] args)'")
  273. SMC_ERR(ERRundefUse     ,0, "The value of '%s' may be used before definition"     )
  274. SMC_ERR(ERRbadVarArg    ,0, "varargs functions cannot be used here"               )
  275. SMC_ERR(ERRnotArgIter   ,0, "Expected a local variable of type 'va_list'"         )
  276. SMC_ERR(ERRnotLastArg   ,0, "Expected the last fixed argument of the current function")
  277. SMC_ERR(ERRbadVAtype    ,0, "The type '%s' cannot be used as a vararg type"       )
  278. SMC_ERR(ERRbadDelete    ,0, "'delete' requires a pointer to an unmanaged class"   )
  279. SMC_ERR(ERRnoFnDef      ,0, "No definition was found for method '%s'"             )
  280. SMC_ERR(ERRnoPropGet    ,0, "No definition was found for 'get' accessor of property '%s'")
  281. SMC_ERR(ERRnoPropSet    ,0, "No definition was found for 'set' accessor of property '%s'")
  282. SMC_ERR(ERRbadCFNret    ,0, "A method marked as '@conditional' must return 'void'")
  283. SMC_ERR(ERRbadNameUse   ,0, "'%s' cannot be used in this context"                 )
  284. SMC_ERR(ERRmanyUmgIxx   ,0, "Multiple index expressions may not be used with unmanaged arrays")
  285. SMC_ERR(ERRindexCnt     ,0, "Expected %u index expressions"                       )
  286. SMC_ERR(ERRua2manyDims  ,0, "An unmanaged array may only have one dimension"      )
  287. SMC_ERR(ERRnoDimDcl     ,0, "Expected array dimension or '*'"                     )
  288. SMC_ERR(ERRarrInitCnt   ,0, "Expected %u sub-array initializers, %u found"        )
  289. SMC_ERR(ERRbadVAarg     ,0, "va_arg() expects a va_list value and a type argument")
  290. SMC_ERR(ERRbadTypeExpr  ,0, "Expression, not type '%s', expected here"            )
  291. SMC_ERR(ERRnoBaseInit   ,0, "Base initializer expected after ':': '%s(args)' or 'baseclass(args)'")
  292. SMC_ERR(ERRbadPrgOpt    ,0, "Invalid #pragma option parameter"                    )
  293. SMC_ERR(ERRerrPos       ,0, "Previous diagnostic refers to declaration at %s(%u)" )
  294. SMC_ERR(ERRunknownMD    ,0, "Symbol '%s' references unknown metadata construct(s)")
  295.  
  296. SMC_ERR(ERRbadMacDef    ,0, "Illegal macro definition for '%s'"                   )
  297. SMC_ERR(ERRmacPlace     ,0, "#define must precede any use of identifier '%s'"     )
  298. SMC_ERR(ERRmacRedef     ,0, "'%s' was referenced before definition as macro"      )
  299.  
  300. SMC_ERR(ERRdlgNonFn     ,0, "A delegate must be declared as a function"           )
  301. SMC_ERR(ERRdlgCTarg     ,0, "A delegate instance must be created from a bound method")
  302. SMC_ERR(ERRdlgNoMFN     ,0, "No method in '%s' matches '%s'"                      )
  303. SMC_ERR(ERRmulDlgRet    ,0, "A multicast delegate must return 'void'"             )
  304.  
  305. SMC_ERR(ERRbadAtCmPlc   ,0, "This '@comment' thing not allowed here"              )
  306. SMC_ERR(ERRbadAtCmSubd  ,0, "Invalid '%s' comment sub-directive: '%s'"            )
  307. SMC_ERR(ERRbadAtCmForm  ,0, "Incorrect '%s' comment syntax"                       )
  308. SMC_ERR(ERRnoDLLname    ,0, "Missing DLL name, must be specified on method or class")
  309. SMC_ERR(ERRclsImpName   ,0, "Only DLL name may be specified for a class"          )
  310.  
  311. SMC_ERR(ERRbadSecActn   ,0, "'%s' is not a recognized security action"            )
  312. SMC_ERR(ERRnonCnsAA     ,0, "Argument %u in attribute arglist is not a constant"  )
  313. SMC_ERR(ERRcustAttrPlc  ,0, "Custom atttribute '%s' not allowed here"             )
  314. SMC_ERR(ERRcustAttrDup  ,0, "Custom atttribute '%s' may not be specified more than once")
  315. SMC_ERR(ERRcustAttrMsk  ,0, "Invalid custom atttribute placement mask"            )
  316.  
  317. SMC_ERR(ERRnoClsGt      ,0, "'class' or '>' expected"                             )
  318. SMC_ERR(ERRnoCmGt       ,0, "Expected ',' or '>'"                                 )
  319. SMC_ERR(ERRumgGenCls    ,0, "Only managed classes and interfaces may be generic"  )
  320. SMC_ERR(ERRmisgGenArg   ,0, "Expected actual type for generic parameter '%s'"     )
  321. SMC_ERR(ERRgenArg       ,0, "Actual type for parameter '%s' must be a managed class/interface")
  322. SMC_ERR(ERRgenArgBase   ,0, "Actual type for parameter '%s' doesn't have '%s' as a base")
  323. SMC_ERR(ERRgenArgIntf   ,0, "Actual type for parameter '%s' doesn't have '%s' as an interface")
  324. SMC_ERR(ERRgenNested    ,0, "Nested classes may not be generic"                   )
  325.  
  326. SMC_ERR(ERRbadAttr      ,0, "Attribute syntax incorrect (see compiler file parser.cpp for details)")
  327. SMC_ERR(ERRplcAttr      ,0, "This attribute is not allowed here"                  )
  328. SMC_ERR(ERRbadGUID      ,0, "Invalid GUID string '%s', should be of the form HHHHHHHH-HHHH-HHHH-HHHH-HHHHHHHHHHHH")
  329.  
  330. // All warnings must be here at the end (i.e. no errors allowed after the warnings)
  331.  
  332. SMC_WR1(WRNasgNoUse     ,0, "Local variable '%s' is initialized but never used"   )
  333. SMC_WRN(WRNbadPragma    ,0, "Unrecognized #pragma directive '%s' ignored"         )
  334. SMC_WRN(WRNbadPrep      ,1, "Ignoring unrecognized directive '#%s'"               )
  335. SMC_WRN(WRNignoreCV     ,0, "Ignoring const/volatile modifier"                    )
  336. SMC_WRN(WRNenumComp     ,0, "Comparing values of two different enum types"        )
  337. SMC_WRN(WRNloseBits     ,1, "Conversion from '%s' to '%s' may lose precision"     )
  338. SMC_WRN(WRNzeroPtr      ,1, "Using '0' instead of 'null' is in poor style"        )
  339. SMC_WRN(WRNvoidFnc      ,1, "Using '(void)' for parameterless functions is obsolete")
  340. SMC_WRN(WRNignoreLnk    ,1, "C++ external linkage specifier ignored"              )
  341. SMC_WRN(WRNgeneric      ,1, "%s"                                                  )
  342. SMC_WRN(WRNunkAttr      ,1, "Ignoring unrecognized attribute '%s'"                )
  343. SMC_WRN(WRNnoArgName    ,0, "Argument declaration without a name"                 )
  344. SMC_WRN(WRNunreach      ,1, "Unreachable code"                                    )
  345. SMC_WRN(WRNimplAbst     ,1, "Class '%s' is implicitly abstract, it doesn't implement '%s'")
  346. SMC_WRN(WRNbadAtCm      ,1, "Unrecognized comment directive '%s' ignored"         )
  347. SMC_WRN(WRNignAtCm      ,1, "Ignoring comment directive '%s'"                     )
  348. SMC_WRN(WRNmgdBF        ,1, "Ignoring bitfield declaration in a managed class"    )
  349. SMC_WRN(WRNbadMgdStr    ,1, "Unions should not be declared 'managed', it doesn't really work right now")
  350. SMC_WRN(WRNundefUse     ,1, "The value of '%s' may be used before definition"     )
  351. SMC_WRN(WRNnoFnDef      ,1, "No definition was found for method '%s'"             )
  352. SMC_WRN(WRNignoring     ,1, "Ignoring %s"                                         )
  353. SMC_WRN(WRNnoNSnm       ,1, "Ignoring 'using %s' - it doesn't denote a namespace" )
  354. SMC_WRN(WRNdepCall      ,1, "Call to deprecated method '%s'"                      )
  355. SMC_WRN(WRNdepCls       ,1, "Use of deprecated class '%s'"                        )
  356. SMC_WRN(WRNdepFld       ,1, "Use of deprecated field '%s'"                        )
  357. SMC_WRN(WRNdepProp      ,1, "Use of deprecated property '%s'"                     )
  358. SMC_WRN(WRNdepEnum      ,1, "Use of deprecated enum value '%s'"                   )
  359. SMC_WRN(WRNmacroArgs    ,1, "Pre-processor macros with arguments not supported, ignoring #define directive")
  360. SMC_WRN(WRNconvert      ,1, "Converting value of type '%s' to '%s'"               )
  361. SMC_WRN(WRNbadEsc       ,1, "Unrecognized escape sequence \\%c"                   )
  362. SMC_WRN(WRNskipAtCm     ,1, "Found '@' gizmo in regular comment, ignoring it"     )
  363. SMC_WRN(WRNstmtNoUse    ,1, "Outermost statement expression has no side effect"   )
  364. SMC_WRN(WRNpgm2big      ,1, "Image size exceeds specified maximum: 0x%08X vs. 0x%08X")
  365. SMC_WRN(WRNimplOut      ,1, "Argument %u may be modified by the call to '%s'"     )
  366. SMC_WRN(WRNenum2str     ,1, "Converting '%s' to String using its underlying integer type")
  367. SMC_WRN(WRNunsConst     ,1, "Implicit conversion of a negative constant to an unsigned type")
  368. SMC_WRN(WRNaddStrings   ,0, "Using '+' to concatenate strings is deprecated, please use '%%%%'")
  369. SMC_WRN(WRNstrRefCmp    ,9, "Comparing String references doesn't compare the string values")
  370. SMC_WRN(WRNhideVirt     ,0, "Base class member function '%s' hidden, not overloaded")
  371. SMC_WRN(WRNobsoleteStr  ,1, "'%s' has been marked as obsolete: '%s'"              )
  372. SMC_WRN(WRNoperPrec     ,1, "Comparisons have precedence over bitwise operators, did you forget parens?"  )
  373. SMC_WRN(WRNctxFlavor    ,1, "Implicit conversion from '%s' to '%s' may cause context grief")
  374. SMC_WRN(WRNobsolete     ,9, "Obsolete language feature used: %s"                  )
  375. SMC_WRN(WRNstrValCmp    ,1, "Relational operator compares string values"          )
  376. SMC_WRN(WRNenumConv     ,0, "Mixing values of two different enum types"           )
  377.  
  378.